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

Remove unnecessary condition.

parent 60c8ed19
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