Make sure loglinear option correctly set logged_steady_state option for use in stoch_simul.m

time-shift
Johannes Pfeifer 2015-05-29 16:17:12 +02:00
parent f597709228
commit 94fe1de08a
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ end
if options_.loglinear && isfield(oo_.dr,'ys') && options_.logged_steady_state==0 %log steady state for correct display of decision rule
oo_.dr.ys=log(oo_.dr.ys);
oo_.steady_state=log(oo_.steady_state);
options_old.logged_steady_state = 1;
options_old.logged_steady_state = 1; %make sure option is preserved outside of stoch_simul
options_.logged_steady_state=1; %set option for use in stoch_simul
end
if info(1)
options_ = options_old;