From b89bdb6fd6f936b097632cc5cc9d6e68ac4d8cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= <stephane.adjemian@univ-lemans.fr> Date: Fri, 24 Aug 2012 12:47:24 +0200 Subject: [PATCH] Bug fix. Call evaluate_steady_state_routine, otherwise evaluate_smoother crashes if the steady state of the model is specified using the steady state model block (or writing a steadystate2.m routine). --- matlab/evaluate_smoother.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matlab/evaluate_smoother.m b/matlab/evaluate_smoother.m index d923027a2a..3fc419ce1e 100644 --- a/matlab/evaluate_smoother.m +++ b/matlab/evaluate_smoother.m @@ -96,9 +96,7 @@ if isempty(dataset_) % Determine if a constant is needed. if options_.steadystate_flag% if the *_steadystate.m file is provided. - [ys,tchek] = feval([M_.fname '_steadystate'],... - [zeros(M_.exo_nbr,1);... - oo_.exo_det_steady_state]); + [ys,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,1); if size(ys,1) < M_.endo_nbr if length(M_.aux_vars) > 0 ys = add_auxiliary_variables_to_steadystate(ys,M_.aux_vars,... -- GitLab