MS-SBVAR bugfix: reinitialize drop if necessary
parent
e8e2bf8f14
commit
08ab51f0d0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue