Merge branch 'stoch_simul_order' into 'master'

Make preprocessor recognize default order=2 of stoch_simul

Closes #49

See merge request Dynare/preprocessor!24
issue#70
Sébastien Villemot 2020-07-21 08:43:34 +00:00
commit 4be0d7b8c7
1 changed files with 4 additions and 0 deletions

View File

@ -1491,6 +1491,10 @@ ParsingDriver::rplot()
void
ParsingDriver::stoch_simul()
{
//make sure default order is known to preprocessor, see #49
if (options_list.num_options.find("order") == options_list.num_options.end())
options_list.num_options["order"] = "2";
mod_file->addStatement(make_unique<StochSimulStatement>(symbol_list, options_list));
symbol_list.clear();
options_list.clear();