From 4b50acbb93874070a3b7361d41a3dd66298403db 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 --- preprocessor/ModFile.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index b2f958077..7aa034d7a 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/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