Skip to content
Snippets Groups Projects
Commit c2b9bd1c authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Add missing check for display of results in evaluate_steady_state.m

parent f0909834
Branches
Tags
No related merge requests found
......@@ -233,9 +233,10 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta
M.orig_endo_nbr,...
static_model);
[infrow,infcol]=find(isinf(fjac) | isnan(fjac));
fprintf('\nSTEADY: The Jacobian at the initial values contains Inf or NaN. The problem arises from: \n')
display_problematic_vars_Jacobian(infrow,infcol,M,ys_init,'static','STEADY: ')
if ~isempty(infrow)
fprintf('\nSTEADY: The Jacobian at the initial values contains Inf or NaN. The problem arises from: \n')
display_problematic_vars_Jacobian(infrow,infcol,M,ys_init,'static','STEADY: ')
end
problematic_equation = find(~isfinite(fvec));
if ~isempty(problematic_equation)
fprintf('\nSTEADY: numerical initial values or parameters incompatible with the following equations\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment