From 82d43818f5f276fb066bc0b45c31037a378d92f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Mon, 9 Mar 2015 18:21:36 +0100
Subject: [PATCH] Fix issue with purely forward deterministic models with lags
 on exogenous.

Ref #617

(cherry picked from commit 6e0d9197519a1be6ca960cf3dc0eb7e02d959fb8)
---
 matlab/sim1_purely_forward.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/sim1_purely_forward.m b/matlab/sim1_purely_forward.m
index d1e938d3c4..68a6714b81 100644
--- a/matlab/sim1_purely_forward.m
+++ b/matlab/sim1_purely_forward.m
@@ -39,7 +39,7 @@ function sim1_purely_forward()
                              1, 1, options_.gstep, options_.solve_tolf, ...
                              options_.solve_tolx, options_.simul.maxit, ...
                              options_.debug,oo_.exo_simul, M_.params, oo_.steady_state, ...
-                             it);
+                             it+M_.maximum_lag);
 
         if info
             skipline(2);
@@ -50,4 +50,4 @@ function sim1_purely_forward()
 
         oo_.endo_simul(:,it) = tmp(1:M_.endo_nbr);
     end
-    
\ No newline at end of file
+    
-- 
GitLab