dyn_ramsey_static.m: only read first entry of error code

May crash otherwise
pac-components
Johannes Pfeifer 2021-11-05 08:59:47 +01:00
parent 3f40404bc0
commit b1e72d531d
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ if options_.steadystate_flag
steady_state=NaN(endo_nbr,1);
return
end
if check %return
if check(1) %return
resids=ones(inst_nbr,1)+sum(abs(x(1:M.orig_endo_nbr))); %return with penalty
steady_state=NaN(endo_nbr,1);
return