From a2d7e91c6fbb8fdc6ea75c6080b8e1b39b437b0e Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Sat, 14 May 2016 10:51:17 +0200
Subject: [PATCH] extended_path: fixing status of perfect foresigh solver

---
 matlab/ep/extended_path_core.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/matlab/ep/extended_path_core.m b/matlab/ep/extended_path_core.m
index dacaeb9932..466efc3984 100644
--- a/matlab/ep/extended_path_core.m
+++ b/matlab/ep/extended_path_core.m
@@ -1,3 +1,4 @@
+
 function [y, info_convergence] = extended_path_core(periods,endo_nbr,exo_nbr,positive_var_indx, ...
                                 exo_simul,init,initial_conditions,...
                                 steady_state, ...
@@ -49,7 +50,8 @@ if flag
         options.lmmcp = olmmcp;
         options.solve_algo = solve_algo;
         options.stack_solve_algo = stack_solve_algo;
-        [tmp,flag] = perfect_foresight_solver_core(M,options,oo);
+        tmp = perfect_foresight_solver_core(M,options,oo);
+        flag = tmp.deterministic_simulation.status;
         if ~flag && ~options.no_homotopy
             exo_orig = oo.exo_simul;
             endo_simul = repmat(steady_state,1,periods+1);
-- 
GitLab