Skip to content
Snippets Groups Projects
Commit 4b50acbb authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Add more explicit error message when mixing ramsey_policy with varexo_det

parent ea3d2cd1
Branches
Tags
No related merge requests found
...@@ -333,6 +333,12 @@ ModFile::transformPass() ...@@ -333,6 +333,12 @@ ModFile::transformPass()
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (mod_file_struct.ramsey_policy_present && symbol_table.exo_det_nbr() > 0)
{
cerr << "ERROR: ramsey_policy is incompatible with deterministic exogenous variables" << endl;
exit(EXIT_FAILURE);
}
if (!mod_file_struct.ramsey_policy_present) if (!mod_file_struct.ramsey_policy_present)
cout << "Found " << dynamic_model.equation_number() << " equation(s)." << endl; cout << "Found " << dynamic_model.equation_number() << " equation(s)." << endl;
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment