Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Willi Mutschler
preprocessor
Commits
f7cd6dbf
Verified
Commit
f7cd6dbf
authored
Feb 04, 2021
by
Willi Mutschler
Browse files
🐛
save oo_.time also in _results.mat
parent
702cf62e
Pipeline
#4881
passed with stages
in 5 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ModFile.cc
View file @
f7cd6dbf
...
...
@@ -1075,6 +1075,11 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
static_model
.
writeAuxVarInitval
(
mOutputFile
,
ExprNodeOutputType
::
matlabOutsideModel
);
}
if
(
!
notime
)
mOutputFile
<<
endl
<<
endl
<<
"oo_.time = toc(tic0);"
<<
endl
<<
"disp(['Total computing time : ' dynsec2hms(oo_.time) ]);"
<<
endl
;
mOutputFile
<<
"save('"
<<
basename
<<
"_results.mat', 'oo_', 'M_', 'options_');"
<<
endl
<<
"if exist('estim_params_', 'var') == 1"
<<
endl
<<
" save('"
<<
basename
<<
"_results.mat', 'estim_params_', '-append');"
<<
endl
<<
"end"
<<
endl
...
...
@@ -1091,11 +1096,6 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
config_file
.
writeEndParallel
(
mOutputFile
);
if
(
!
notime
)
mOutputFile
<<
endl
<<
endl
<<
"oo_.time = toc(tic0);"
<<
endl
<<
"disp(['Total computing time : ' dynsec2hms(oo_.time) ]);"
<<
endl
;
if
(
!
no_warn
)
{
if
(
warnings
.
countWarnings
()
>
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment