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

Ramsey: do not check static model if steady state file is present

Check will typically crash due to initialization with 0

(cherry picked from commit 7cffd34b)
parent 924cb227
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ options_.steadystate.nocheck = 1; %locally disable checking because Lagrange mul
nl_func = @(x) dyn_ramsey_static_1(x,M,options_,oo);
% check_static_model is a subfunction
if check_static_model(ys_init,M,options_,oo) && ~options_.steadystate_flag
if ~options_.steadystate_flag && check_static_model(ys_init,M,options_,oo)
steady_state = ys_init;
return
elseif options_.steadystate_flag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment