From bd81ebc55d01153dac009ed5578de3643bf4af31 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 29 Aug 2017 11:51:11 +0200 Subject: [PATCH] evaluate_steady_state: simplify check: the only time this variable is used both of these conditions hold --- matlab/evaluate_steady_state.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/matlab/evaluate_steady_state.m b/matlab/evaluate_steady_state.m index d51c08bc8..c288cff8b 100644 --- a/matlab/evaluate_steady_state.m +++ b/matlab/evaluate_steady_state.m @@ -46,11 +46,9 @@ steadystate_flag = options.steadystate_flag; params = M.params; exo_ss = [oo.exo_steady_state; oo.exo_det_steady_state]; -if length(M.aux_vars) > 0 +if length(M.aux_vars) > 0 && ~steadystate_flag h_set_auxiliary_variables = str2func([M.fname '_set_auxiliary_variables']); - if ~steadystate_flag - ys_init = h_set_auxiliary_variables(ys_init,exo_ss,M.params); - end + ys_init = h_set_auxiliary_variables(ys_init,exo_ss,M.params); end if options.ramsey_policy