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

Do not error out in stochastic mode if mfs > 0 but “block” option not passed

In that case, the block-DR routines will not be called.
parent 5a6e2767
No related branches found
No related tags found
No related merge requests found
......@@ -369,9 +369,12 @@ ModFile::checkPass(bool nostrict, bool stochastic)
}
// See dynare#1726
if ((stochastic_statement_present || mod_file_struct.check_present) && dynamic_model.mfs > 0)
if ((stochastic_statement_present || mod_file_struct.check_present) && block && 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;
/* NB: If mfs>0 but “block” is not passed, the block-DR routines will not
be called, so do not fail in that case (we may want to use the sparse
block representation) */
cerr << "ERROR: the `block` option used in conjunction with `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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment