Forbid use of 'identification' with exogenous deterministic variables.

Closes #664
issue#70
Sébastien Villemot 2014-07-30 17:28:45 +02:00
parent 66c51b881a
commit 901d4b8394
1 changed files with 6 additions and 0 deletions

View File

@ -419,6 +419,12 @@ ModFile::transformPass(bool nostrict)
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)
cout << "Found " << dynamic_model.equation_number() << " equation(s)." << endl;
else