Preprocessor update

— Reject exogenous deterministic variables in a few places where they were
  erroneously accepted
– Use booleans for “exo_det” and “multiplicative” fields of M_.det_shocks
— Add checks on the value of the “learnt_in” option of “shocks” and “endval”
fix-tolerance-parameters
Sébastien Villemot 2022-04-26 14:52:31 +02:00
parent b6dc32621f
commit 7dda3c7985
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ function run(json)
% SPECIAL REQUIREMENTS
% none
% Copyright © 2019 Dynare Team
% Copyright © 2019-2022 Dynare Team
%
% This file is part of Dynare.
%
@ -82,9 +82,9 @@ if ~isempty(jm.anticipated_permanent_shocks) || ~isempty(jm.endval_endo)
M_.det_shocks = [ ...
M_.det_shocks; ...
struct(...
'exo_det', 0, ...
'exo_det', false, ...
'exo_id', s.exo_id, ...
'multiplicative', 0, ...
'multiplicative', false, ...
'periods', 1:s.start_date, ...
'value', 0)];
end
@ -97,9 +97,9 @@ if ~isempty(jm.anticipated_transitory_shocks)
s = jm.anticipated_transitory_shocks(i);
M_.det_shocks = [ ...
M_.det_shocks; ...
struct('exo_det', 0, ...
struct('exo_det', false, ...
'exo_id', s.exo_id, ...
'multiplicative', 0, ...
'multiplicative', false, ...
'periods', s.start_date:s.end_date, ...
'value', s.value)];
end

@ -1 +1 @@
Subproject commit b5a4df16088d9d3c1f77db0aaa5bed4f4ee32354
Subproject commit dbe14ecfd4bb04ea24880e7715e855332f8b1a8d