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
Dóra Kocsis
dynare
Commits
3b264679
Commit
3b264679
authored
Nov 13, 2013
by
Houtan Bastani
Browse files
saves variables if they exist at end of dynare run. closes #517
parent
63eec83e
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ModFile.cc
View file @
3b264679
...
...
@@ -703,7 +703,15 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
if
(
block
&&
!
byte_code
)
mOutputFile
<<
"rmpath "
<<
basename
<<
";"
<<
endl
;
mOutputFile
<<
"save('"
<<
basename
<<
"_results.mat', 'oo_', 'M_', 'options_');"
<<
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
<<
"if exist('bayestopt_', 'var') == 1"
<<
endl
<<
" save('"
<<
basename
<<
"_results.mat', 'bayestopt_', '-append');"
<<
endl
<<
"end"
<<
endl
<<
"if exist('dataset_', 'var') == 1"
<<
endl
<<
" save('"
<<
basename
<<
"_results.mat', 'dataset_', '-append');"
<<
endl
<<
"end"
<<
endl
<<
"if exist('estimation_info', 'var') == 1"
<<
endl
<<
" save('"
<<
basename
<<
"_results.mat', 'estimation_info', '-append');"
<<
endl
<<
"end"
<<
endl
;
config_file
.
writeEndParallel
(
mOutputFile
);
...
...
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