Skip to content
Snippets Groups Projects
Verified Commit 04ab1e56 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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

Ref. !1982
parents d841fc7c b966e5eb
No related branches found
No related tags found
1 merge request!1982evaluate_steady_state.m: do not check auxiliary initial values if they haven't been set
......@@ -127,14 +127,22 @@ if options.ramsey_policy
end
end
if options.debug
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
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