Commit 4cf72812 authored by michel's avatar michel
Browse files

v4: bug correction in initialization of engodnous variables

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1189 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 9f0ce4ac
......@@ -133,6 +133,7 @@ function global_initialization()
oo_.exo_simul = [];
oo_.endo_simul = [];
oo_.dr = [];
oo_.exo_steady_state = [];
oo_.exo_det_steady_state = [];
oo_.exo_det_simul = [];
......
......@@ -21,7 +21,7 @@ function make_y_
options_ = set_default_option(options_,'periods',0);
if isempty(oo_.steady_state)
oo_.steady_state = ones(M_.endo_nbr,1);
oo_.steady_state = zeros(M_.endo_nbr,1);
end
......@@ -29,7 +29,7 @@ function make_y_
if isempty(ys0_)
oo_.endo_simul = [oo_.steady_state*ones(1,M_.maximum_lag+options_.periods+M_.maximum_lead)];
else
oo_.endo_simul = [ys0_*ones(1,M_.maximum_lag);oo_.steady_state*ones(1,options_.periods+M_.maximum_lead)];
oo_.endo_simul = [ys0_*ones(1,M_.maximum_lag) oo_.steady_state*ones(1,options_.periods+M_.maximum_lead)];
end
elseif size(oo_.endo_simul,2) < M_.maximum_lag+M_.maximum_lead+options_.periods
oo_.endo_simul = [oo_.endo_simul oo_.steady_state*ones(1,M_.maximum_lag+options_.periods+M_.maximum_lead-size(oo_.endo_simul,2),1)];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment