Remove unnecessary condition.
parent
60c8ed1948
commit
32b8d6c72a
|
@ -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
|
||||
end
|
||||
|
||||
|
||||
function
|
Loading…
Reference in New Issue