Merge branch 'det_cond_forecast' into 'master'

after check, oo_.dr isn't empty but oo_.dr.ghx + friends don't exist

See merge request Dynare/dynare!1672
time-shift
Sébastien Villemot 2019-11-26 09:09:59 +00:00
commit 08101ce049
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ end
%We have to get an initial guess for the conditional forecast
% and terminal conditions for the non-stationary variables, we
% use the first order approximation of the rational expectation solution.
if ~isfield(oo_,'dr') || (isempty(oo_.dr))
if ~isfield(oo_,'dr') || ~isfield(oo_.dr,'ghx')
fprintf('computing the first order solution of the model as initial guess...');
dr = struct();
oo_.dr=set_state_space(dr,M_,options_);