Prevent crash if steady state cannot be computed

If e.g. the log of the steady state cannot be computed, the field oo_.dr.ys does not exist
time-shift
Johannes Pfeifer 2015-03-25 09:42:59 +01:00
parent 39a2dcd70f
commit 781e280610
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ else
[oo_.dr,info,M_,options_,oo_] = resol(0,M_,options_,oo_);
end
if options_.loglinear %log steady state for correct display of decision rules and simulations
if options_.loglinear && isfield(oo_.dr,'ys') %log steady state for correct display of decision rules and simulations
oo_.dr.ys=log(oo_.dr.ys);
oo_.steady_state=log(oo_.steady_state);
options_old.logged_steady_state = 1;