Merge branch 'display_static_residuals' of git.dynare.org:JohannesPfeifer/dynare

Ref. !2176
kalman-mex
Sébastien Villemot 2023-09-14 12:06:34 +02:00
commit db331c53d4
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ function z = display_static_residuals(M_, options_, oo_,options_resid_)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
non_zero = (isfield(options_resid_, 'non_zero') && options_resid_.non_zero);
non_zero = (nargin > 3 && isfield(options_resid_, 'non_zero') && options_resid_.non_zero);
tags = M_.equations_tags;
istag = 0;

View File

@ -86,7 +86,7 @@ if info(1) == 0
else
if ~options_.noprint
if ~isempty(oo_.steady_state)
display_static_residuals;
display_static_residuals(M_, options_, oo_);
else
skipline()
disp('Residuals of the static equations cannot be computed because the steady state routine returned an empty vector.')