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

evaluate_steady_state.m: do not check auxiliary initial values if they haven't been set

(cherry picked from commit b966e5eb)
parent d04ab0ad
Branches
Tags
No related merge requests found
Pipeline #6531 passed
......@@ -127,14 +127,22 @@ if options.ramsey_policy
end
end
if options.debug
infrow=find(isinf(ys_init));
if steadystate_flag
infrow=find(isinf(ys_init(1:M.orig_endo_nbr)));
else
infrow=find(isinf(ys_init));
end
if ~isempty(infrow)
fprintf('\nevaluate_steady_state: The initial values for the steady state of the following variables are Inf:\n');
for iter=1:length(infrow)
fprintf('%s\n',M.endo_names{infrow(iter)});
end
end
nanrow=find(isnan(ys_init));
if steadystate_flag
nanrow=find(isnan(ys_init(1:M.orig_endo_nbr)));
else
nanrow=find(isnan(ys_init));
end
if ~isempty(nanrow)
fprintf('\nevaluate_steady_state: The initial values for the steady state of the following variables are NaN:\n');
for iter=1:length(nanrow)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment