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

The result would be wrong.

Ref. dynare#1726
issue#70
Sébastien Villemot 2021-05-04 17:10:36 +02:00
parent 7765efe95b
commit 3c4d647cc3
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 6 additions and 0 deletions

View File

@ -358,6 +358,12 @@ ModFile::checkPass(bool nostrict, bool stochastic)
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