From cf6f5915e0ce170aa5cbbccbea7b840ce21b7c52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Mon, 2 Dec 2013 14:58:33 +0100
Subject: [PATCH] Fix bug with DSGE-VAR introduced in f7cdc39f

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

diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc
index e037f2d46c..8d213250b1 100644
--- a/preprocessor/ComputingTasks.cc
+++ b/preprocessor/ComputingTasks.cc
@@ -521,7 +521,7 @@ EstimatedParamsStatement::checkPass(ModFileStructure &mod_file_struct, WarningCo
   // Fill in mod_file_struct.estimated_parameters (related to #469)
   for (vector<EstimationParams>::const_iterator it = estim_params_list.begin();
        it != estim_params_list.end(); it++)
-    if (it->type == 2)
+    if (it->type == 2 && it->name != "dsge_prior_weight")
       mod_file_struct.estimated_parameters.insert(symbol_table.getID(it->name));
 }
 
-- 
GitLab