From e7178811154224919ecbe7ebd877dd4cfa642bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Thu, 7 Feb 2013 11:52:59 +0100 Subject: [PATCH] Add more explicit error message when mixing ramsey_policy with varexo_det --- ModFile.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ModFile.cc b/ModFile.cc index b2f95807..7aa034d7 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -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