Skip to content
Snippets Groups Projects
Verified Commit 2bbf2bdf authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Remove unnecessary condition.

(cherry picked from commit 32b8d6c7)
parent fc0a4a7a
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ if isempty(ide)
end
if ~isempty(ide)
if isfield(M_.pac.(pacmodel).equations.(eqtag), 'additive') && length(M_.pac.(pacmodel).equations.(eqtag).additive.vars)>1
if isfield(M_.pac.(pacmodel).equations.(eqtag), 'additive')
if ~isfield(M_.pac.(pacmodel).equations.(eqtag).additive, 'bgp')
M_.pac.(pacmodel).equations.(eqtag).additive.bgp = zeros(1, length(M_.pac.(pacmodel).equations.(eqtag).additive.params));
end
......@@ -91,4 +91,7 @@ if ~isempty(ide)
warning('%s is not an exogenous variable in equation %s.', variable, paceq)
else
error('Endogenous/Exogenous variable %s is unknown.', variable)
end
\ No newline at end of file
end
function
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment