From 305914b5510735d6263b25aee9b534436751727f Mon Sep 17 00:00:00 2001
From: ferhat <ferhat@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Thu, 27 Aug 2009 13:26:29 +0000
Subject: [PATCH] - bug fix when solve_algo = 4 is selected

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2870 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/solve_one_boundary.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/solve_one_boundary.m b/matlab/solve_one_boundary.m
index b5430d1a64..dc900f58c6 100644
--- a/matlab/solve_one_boundary.m
+++ b/matlab/solve_one_boundary.m
@@ -100,7 +100,7 @@ function [y, info] = solve_one_boundary(fname, y, x, params, y_index_eq, nze, pe
               max_res=max(max(abs(r)));
            end;
            %['max_res=' num2str(max_res) ' Block_Num=' int2str(Block_Num) ' it_=' int2str(it_)]
-           disp(['iteration : ' int2str(iter+1) ' => ' num2str(max_res) ' time = ' int2str(it_)]);
+           %disp(['iteration : ' int2str(iter+1) ' => ' num2str(max_res) ' time = ' int2str(it_)]);
            
 %     fjac = zeros(Blck_size, Blck_size);
 %     disp(['Blck_size=' int2str(Blck_size) ' it_=' int2str(it_)]);
@@ -232,7 +232,7 @@ function [y, info] = solve_one_boundary(fname, y, x, params, y_index_eq, nze, pe
                else
                   info = -Block_Num*10;
                end
-             elseif((~is_dynamic & options_.solve_algo==2) || (is_dynamic & options_.solve_algo==4))
+             elseif((~is_dynamic & options_.solve_algo==2) || (is_dynamic & simulation_method==4))
                 lambda=1;
                 stpmx = 100 ;
                 if (is_dynamic)
-- 
GitLab