From 419c684929f11ddb1f23fa07b49921c9f719f857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 29 Mar 2023 15:33:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Extend=20incompatibility=20with?= =?UTF-8?q?=20deterministic=20exogenous=20to=20ramsey=5Fmodel=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The check was only done with ramsey_policy. --- src/ModFile.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ModFile.cc b/src/ModFile.cc index f46e60bc..1a800a9a 100644 --- a/src/ModFile.cc +++ b/src/ModFile.cc @@ -575,9 +575,10 @@ ModFile::transformPass(bool nostrict, bool stochastic, bool compute_xrefs, bool exit(EXIT_FAILURE); } - if (mod_file_struct.ramsey_policy_present && symbol_table.exo_det_nbr() > 0) + if ((mod_file_struct.ramsey_model_present || mod_file_struct.ramsey_policy_present) + && symbol_table.exo_det_nbr() > 0) { - cerr << "ERROR: ramsey_policy is incompatible with deterministic exogenous variables" << endl; + cerr << "ERROR: ramsey_model and ramsey_policy are incompatible with deterministic exogenous variables" << endl; exit(EXIT_FAILURE); } -- GitLab