From 597a4b92a08efbab964a68a66ceed96d7c43225b Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Sat, 18 Jun 2011 06:53:00 +0200
Subject: [PATCH] discretionary_policy: fixing bug in preprocessor requirements

---
 preprocessor/ModFile.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc
index 1b15f908f4..25fe739d60 100644
--- a/preprocessor/ModFile.cc
+++ b/preprocessor/ModFile.cc
@@ -304,7 +304,7 @@ ModFile::transformPass()
     - ramsey_policy is used
     - a BVAR command is used and there is no equation (standalone BVAR estimation)
   */
-  if (!mod_file_struct.ramsey_policy_present
+  if (!(mod_file_struct.ramsey_policy_present || mod_file_struct.discretionary_policy_present)
       && !(mod_file_struct.bvar_present && dynamic_model.equation_number() == 0)
       && (dynamic_model.equation_number() != symbol_table.endo_nbr()))
     {
-- 
GitLab