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

:bug: Extend incompatibility with deterministic exogenous to ramsey_model command

The check was only done with ramsey_policy.
parent d0bc8128
Branches
No related tags found
No related merge requests found
......@@ -575,9 +575,10 @@ ModFile::transformPass(bool nostrict, bool stochastic, bool compute_xrefs, bool
exit(EXIT_FAILURE);
}
if (mod_file_struct.ramsey_policy_present && symbol_table.exo_det_nbr() > 0)
if ((mod_file_struct.ramsey_model_present || mod_file_struct.ramsey_policy_present)
&& symbol_table.exo_det_nbr() > 0)
{
cerr << "ERROR: ramsey_policy is incompatible with deterministic exogenous variables" << endl;
cerr << "ERROR: ramsey_model and ramsey_policy are incompatible with deterministic exogenous variables" << 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