Merge pull request #861 from JohannesPfeifer/steady_fix

Prevent crash if steady state cannot be computed
time-shift
Stéphane Adjemian 2015-03-30 15:17:46 +02:00
commit ad0e0b6c1d
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;