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
......@@ -333,6 +333,12 @@ ModFile::transformPass()
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)
cout << "Found " << dynamic_model.equation_number() << " equation(s)." << endl;
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment