Use maximum_endo_lag instead of maximum_lag

Closes: #292
time-shift
Sébastien Villemot 2013-01-07 10:40:49 +01:00
parent 2fc7aa7b94
commit ad8b615771
1 changed files with 3 additions and 6 deletions

View File

@ -16,7 +16,7 @@ function model_diagnostics(M,options,oo)
% none. % none.
% %
% Copyright (C) 1996-2012 Dynare Team % Copyright (C) 1996-2013 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
@ -38,13 +38,12 @@ global jacob
endo_nbr = M.endo_nbr; endo_nbr = M.endo_nbr;
endo_names = M.endo_names; endo_names = M.endo_names;
lead_lag_incidence = M.lead_lag_incidence; lead_lag_incidence = M.lead_lag_incidence;
maximum_lag = M.maximum_lag; maximum_endo_lag = M.maximum_endo_lag;
maximum_lead = M.maximum_lead;
% %
% missing variables at the current period % missing variables at the current period
% %
k = find(lead_lag_incidence(maximum_lag+1,:)==0); k = find(lead_lag_incidence(maximum_endo_lag+1,:)==0);
if ~isempty(k) if ~isempty(k)
disp(['The following endogenous variables aren''t present at ' ... disp(['The following endogenous variables aren''t present at ' ...
'the current period in the model:']) 'the current period in the model:'])
@ -58,8 +57,6 @@ end
% %
info = 0; info = 0;
it_ = M.maximum_lag + 1 ;
if M.exo_nbr == 0 if M.exo_nbr == 0
oo.exo_steady_state = [] ; oo.exo_steady_state = [] ;
end end