Make sure oo_.logged_steady_state is always correctly set

time-shift
Johannes Pfeifer 2015-03-07 12:36:58 +01:00 committed by Johannes Pfeifer
parent df1c7fce8a
commit de4d90f88e
2 changed files with 3 additions and 1 deletions

View File

@ -73,6 +73,7 @@ end
if options_.logged_steady_state
oo_.dr.ys=exp(oo_.dr.ys);
oo_.steady_state=exp(oo_.steady_state);
options_.logged_steady_state=0;
end

View File

@ -78,11 +78,12 @@ else
if options_.logged_steady_state %if steady state was previously logged, undo this
oo_.dr.ys=exp(oo_.dr.ys);
oo_.steady_state=exp(oo_.steady_state);
options_.logged_steady_state=0;
end
[oo_.dr,info,M_,options_,oo_] = resol(0,M_,options_,oo_);
end
if options_.loglinear && isfield(oo_.dr,'ys') %log steady state for correct display of decision rules and simulations
if options_.loglinear && isfield(oo_.dr,'ys') && options_.logged_steady_state==0 %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;