From 407e802bfdd6ea47af4faa9753854eb007d8133d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 27 Dec 2013 12:18:57 +0100
Subject: [PATCH] Fix bug in deterministic conditional forecast.

The type of the first shock was not set according to the user request.
Concretely, it would be random, and almost always a perfect foresight shock.
(cherry picked from commit 503d2baa89e7184ac18a644d833b38c8d84eff7f)
---
 preprocessor/ParsingDriver.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preprocessor/ParsingDriver.hh b/preprocessor/ParsingDriver.hh
index 98985b1c3..017c93610 100644
--- a/preprocessor/ParsingDriver.hh
+++ b/preprocessor/ParsingDriver.hh
@@ -215,7 +215,7 @@ private:
   bool nostrict;
 
 public:
-  ParsingDriver(WarningConsolidation &warnings_arg, bool nostrict_arg) : warnings(warnings_arg), nostrict(nostrict_arg) { };
+  ParsingDriver(WarningConsolidation &warnings_arg, bool nostrict_arg) : det_shocks_expectation_pf(false), warnings(warnings_arg), nostrict(nostrict_arg) { };
 
   //! Starts parsing, and constructs the MOD file representation
   /*! The returned pointer should be deleted after use */
-- 
GitLab