evaluate_steady_state: simplify check: the only time this variable is used both of these conditions hold

time-shift
Houtan Bastani 2017-08-29 11:51:11 +02:00
parent bb3e71646a
commit bd81ebc55d
1 changed files with 2 additions and 4 deletions

View File

@ -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