evaluate_static_model.m: provide promised output argument
parent
9a32720ac0
commit
ce899af24d
|
@ -20,7 +20,7 @@ function [residuals,check1,jacob] = evaluate_static_model(ys,exo_ss,params,M,opt
|
||||||
% SPECIAL REQUIREMENTS
|
% SPECIAL REQUIREMENTS
|
||||||
% none
|
% none
|
||||||
|
|
||||||
% Copyright (C) 2001-2020 Dynare Team
|
% Copyright (C) 2001-2021 Dynare Team
|
||||||
%
|
%
|
||||||
% This file is part of Dynare.
|
% This file is part of Dynare.
|
||||||
%
|
%
|
||||||
|
@ -61,6 +61,10 @@ else
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
residuals = feval(fh_static,ys,exo_ss,params);
|
if nargout<3
|
||||||
|
residuals = feval(fh_static,ys,exo_ss,params);
|
||||||
|
else
|
||||||
|
[residuals, jacob] = feval(fh_static,ys,exo_ss,params);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue