evaluate_static_model.m: provide promised output argument

pac-components
Johannes Pfeifer 2021-11-05 12:27:12 +01:00
parent 9a32720ac0
commit ce899af24d
1 changed files with 6 additions and 2 deletions

View File

@ -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