v4 check.m: corrected bug when no exogenous variable and save results in oo_.dr

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1509 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2007-12-20 19:42:19 +00:00
parent 2f7b6c4037
commit 33baab148b
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@ global it_
temp_options = options_;
tempex = oo_.exo_simul;
if ~options_.initval_file
if ~options_.initval_file & M_.exo_nbr > 1
oo_.exo_simul = ones(M_.maximum_lead+M_.maximum_lag+1,1)*oo_.exo_steady_state';
end
@ -22,6 +22,8 @@ global it_
[dr, info] = resol(oo_.steady_state,1);
oo_.dr = dr;
if info(1) ~= 0 & info(1) ~= 3 & info(1) ~= 4
print_info(info);
end