From bb1fd496294a74179855f3491e43e0eac352c183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 8 Apr 2014 17:19:55 +0200 Subject: [PATCH] Remove nonexistent global variable ex_det0_. --- matlab/global_initialization.m | 3 +-- matlab/make_ex_.m | 10 +++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/matlab/global_initialization.m b/matlab/global_initialization.m index 850af1228..1414c5de7 100644 --- a/matlab/global_initialization.m +++ b/matlab/global_initialization.m @@ -28,7 +28,7 @@ function global_initialization() % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -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_ = []; bayestopt_ = []; @@ -434,7 +434,6 @@ oo_.exo_simul = []; oo_.endo_simul = []; ys0_ = []; ex0_ = []; -ex_det0_ = []; oo_.dr = []; oo_.exo_steady_state = []; oo_.exo_det_steady_state = []; diff --git a/matlab/make_ex_.m b/matlab/make_ex_.m index 9665b2a0c..654bff835 100644 --- a/matlab/make_ex_.m +++ b/matlab/make_ex_.m @@ -12,7 +12,7 @@ function make_ex_() % SPECIAL REQUIREMENTS % -% Copyright (C) 1996-2012 Dynare Team +% Copyright (C) 1996-2014 Dynare Team % % 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 % along with Dynare. If not, see . -global M_ options_ oo_ ex0_ ex_det0_ +global M_ options_ oo_ ex0_ if isempty(oo_.exo_steady_state) oo_.exo_steady_state = zeros(M_.exo_nbr,1); @@ -49,11 +49,7 @@ end if M_.exo_det_nbr > 0 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']; - 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 + oo_.exo_det_simul = [ones(M_.maximum_lag+options_.periods+M_.maximum_lead,1)*oo_.exo_det_steady_state']; 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']; end