Commit ba071a0a authored by Houtan Bastani's avatar Houtan Bastani
Browse files

MS-SBVAR bugfix: reinitialize drop if necessary

parent f1dc2c51
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment