Commit b1e72d53 authored by Johannes Pfeifer 's avatar Johannes Pfeifer
Browse files

dyn_ramsey_static.m: only read first entry of error code

May crash otherwise
parent 3f40404b
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment