Skip to content
Snippets Groups Projects
Verified Commit 3c4d647c authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Forbid mfs > 0 in a stochastic setup (or even when using check)

The result would be wrong.

Ref. dynare#1726
parent 7765efe9
Branches
Tags
No related merge requests found
Pipeline #5246 passed
...@@ -358,6 +358,12 @@ ModFile::checkPass(bool nostrict, bool stochastic) ...@@ -358,6 +358,12 @@ ModFile::checkPass(bool nostrict, bool stochastic)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
} }
if ((stochastic_statement_present || mod_file_struct.check_present) && dynamic_model.mfs > 0)
{
cerr << "ERROR: mfs > 0 is incompatible with check, stoch_simul, estimation, osr, ramsey_policy, discretionary_policy, calib_smoother, identification, methods_of_moments and sensitivity commands" << endl;
exit(EXIT_FAILURE);
}
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment