Test if leaded variables exists when calling simul_backward_model routine.
(cherry picked from commit fec807ea17
)
time-shift
parent
efc174115e
commit
c415508b63
|
@ -18,7 +18,7 @@ function simulation = simul_backward_model(initialconditions, samplesize, innova
|
|||
% [3] If the first input argument is empty, the endogenous variables are initialized with 0, or if available with the informations
|
||||
% provided thrtough the histval block.
|
||||
|
||||
% Copyright (C) 2012-2018 Dynare Team
|
||||
% Copyright (C) 2012-2019 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
@ -37,6 +37,10 @@ function simulation = simul_backward_model(initialconditions, samplesize, innova
|
|||
|
||||
global options_ M_ oo_
|
||||
|
||||
if M_.maximum_lead
|
||||
error('Model defined in %s.mod is not backward or static.', M_.fname)
|
||||
end
|
||||
|
||||
if nargin<3
|
||||
Innovations = [];
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue