Remove nonexistent global variable ex_det0_.

time-shift
Sébastien Villemot 2014-04-08 17:19:55 +02:00
parent e396b4d86d
commit bb1fd49629
2 changed files with 4 additions and 9 deletions

View File

@ -28,7 +28,7 @@ function global_initialization()
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_ ex_det0_ global oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_
estim_params_ = []; estim_params_ = [];
bayestopt_ = []; bayestopt_ = [];
@ -434,7 +434,6 @@ oo_.exo_simul = [];
oo_.endo_simul = []; oo_.endo_simul = [];
ys0_ = []; ys0_ = [];
ex0_ = []; ex0_ = [];
ex_det0_ = [];
oo_.dr = []; oo_.dr = [];
oo_.exo_steady_state = []; oo_.exo_steady_state = [];
oo_.exo_det_steady_state = []; oo_.exo_det_steady_state = [];

View File

@ -12,7 +12,7 @@ function make_ex_()
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% %
% Copyright (C) 1996-2012 Dynare Team % Copyright (C) 1996-2014 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
@ -29,7 +29,7 @@ function make_ex_()
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global M_ options_ oo_ ex0_ ex_det0_ global M_ options_ oo_ ex0_
if isempty(oo_.exo_steady_state) if isempty(oo_.exo_steady_state)
oo_.exo_steady_state = zeros(M_.exo_nbr,1); oo_.exo_steady_state = zeros(M_.exo_nbr,1);
@ -49,11 +49,7 @@ end
if M_.exo_det_nbr > 0 if M_.exo_det_nbr > 0
if isempty(oo_.exo_det_simul) if isempty(oo_.exo_det_simul)
if isempty(ex_det0_) oo_.exo_det_simul = [ones(M_.maximum_lag+options_.periods+M_.maximum_lead,1)*oo_.exo_det_steady_state'];
oo_.exo_det_simul = [ones(M_.maximum_lag+options_.periods+M_.maximum_lead,1)*oo_.exo_det_steady_state'];
else
oo_.exo_det_simul = [ones(M_.maximum_lag,1)*ex_det0_';ones(options_.periods+M_.maximum_lead,1)*oo_.exo_det_steady_state'];
end
elseif size(oo_.exo_det_simul,1) < M_.maximum_lag+M_.maximum_lead+options_.periods elseif size(oo_.exo_det_simul,1) < M_.maximum_lag+M_.maximum_lead+options_.periods
oo_.exo_det_simul = [oo_.exo_det_simul; ones(M_.maximum_lag+options_.periods+M_.maximum_lead-size(oo_.exo_det_simul,1),1)*oo_.exo_det_steady_state']; oo_.exo_det_simul = [oo_.exo_det_simul; ones(M_.maximum_lag+options_.periods+M_.maximum_lead-size(oo_.exo_det_simul,1),1)*oo_.exo_det_steady_state'];
end end