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

Forbid use of 'identification' with exogenous deterministic variables.

Closes #664
parent 66c51b88
No related branches found
No related tags found
No related merge requests found
...@@ -419,6 +419,12 @@ ModFile::transformPass(bool nostrict) ...@@ -419,6 +419,12 @@ ModFile::transformPass(bool nostrict)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (mod_file_struct.identification_present && symbol_table.exo_det_nbr() > 0)
{
cerr << "ERROR: identification is incompatible with deterministic exogenous variables" << endl;
exit(EXIT_FAILURE);
}
if (!mod_file_struct.ramsey_model_present) if (!mod_file_struct.ramsey_model_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