Add more explicit error message when mixing ramsey_policy with varexo_det

issue#70
Sébastien Villemot 2013-02-07 11:52:59 +01:00
parent b02662e2d9
commit e717881115
1 changed files with 6 additions and 0 deletions

View File

@ -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