Test if leaded variables exists when calling simul_backward_model routine.

(cherry picked from commit fec807ea17)
time-shift
Stéphane Adjemian (Charybdis) 2019-06-18 09:13:31 +02:00
parent efc174115e
commit c415508b63
1 changed files with 5 additions and 1 deletions

View File

@ -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