Skip to content
Snippets Groups Projects
Verified Commit d7eb1a3c authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

dyn_ramsey_static.m: only read first entry of error code

May crash otherwise

(cherry picked from commit b1e72d53)
parent 03918231
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment