Skip to content
Snippets Groups Projects
Verified Commit 924cb227 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

evaluate_static_model.m: provide promised output argument

(cherry picked from commit ce899af2)
parent 146e8c35
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ function [residuals,check1,jacob] = evaluate_static_model(ys,exo_ss,params,M,opt ...@@ -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 ...@@ -61,6 +61,10 @@ else
end end
end end
else else
if nargout<3
residuals = feval(fh_static,ys,exo_ss,params); residuals = feval(fh_static,ys,exo_ss,params);
else
[residuals, jacob] = feval(fh_static,ys,exo_ss,params);
end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment