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
ba071a0a
Commit
ba071a0a
authored
Sep 14, 2011
by
Houtan Bastani
Browse files
MS-SBVAR bugfix: reinitialize drop if necessary
parent
f1dc2c51
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ComputingTasks.cc
View file @
ba071a0a
...
...
@@ -963,6 +963,14 @@ MSSBVARSimulationStatement::writeOutput(ostream &output, const string &basename)
{
output
<<
"options_ = initialize_ms_sbvar_options(M_, options_);"
<<
endl
;
options_list
.
writeOutput
(
output
);
// Redeclare drop option if necessary
OptionsList
::
num_options_t
::
const_iterator
mh_replic_it
=
options_list
.
num_options
.
find
(
"ms.mh_replic"
);
OptionsList
::
num_options_t
::
const_iterator
drop_it
=
options_list
.
num_options
.
find
(
"ms.drop"
);
if
(
mh_replic_it
!=
options_list
.
num_options
.
end
())
if
(
drop_it
==
options_list
.
num_options
.
end
())
output
<<
"options_.ms.drop = 0.1*options_.ms.mh_replic;"
<<
endl
;
output
<<
"[options_, oo_] = ms_simulation(M_, options_, oo_);"
<<
endl
;
}
...
...
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