Skip to content
Snippets Groups Projects
Commit c3d653b6 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi
Browse files

Check for varexo_det declaration and simul command incompatibility in the same mode-file

parent 32eff62a
No related branches found
No related tags found
No related merge requests found
...@@ -287,6 +287,12 @@ ModFile::transformPass() ...@@ -287,6 +287,12 @@ ModFile::transformPass()
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (symbol_table.exo_det_nbr() > 0 && mod_file_struct.simul_present)
{
cerr << "ERROR: A .mod file cannot contain both a simul command and varexo_det declaration (all exogenous variables are deterministic in this case)" << endl;
exit(EXIT_FAILURE);
}
cout << "Found " << dynamic_model.equation_number() << " equation(s)." << endl; cout << "Found " << dynamic_model.equation_number() << " equation(s)." << endl;
if (symbol_table.exists("dsge_prior_weight")) if (symbol_table.exists("dsge_prior_weight"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment