Provide correct error code if no steady_state-file is provided and Ramsey fails to find steady state

time-shift
Johannes Pfeifer 2017-05-02 13:48:25 +02:00
parent 5af9af06b4
commit 37bffddef8
1 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,10 @@ else
xx = oo.steady_state(1:n_var);
opt = options_;
opt.jacobian_flag = 0;
[xx,check] = dynare_solve(nl_func,xx,opt);
[xx,info1] = dynare_solve(nl_func,xx,opt);
if info1~=0
check=81;
end
[junk,junk,steady_state] = nl_func(xx);
end