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

model_diagnostics.m: add check for potential naming conflict

(cherry picked from commit 737524d1)
parent 7c9abd98
Branches
Tags
No related merge requests found
......@@ -59,6 +59,27 @@ if options.ramsey_policy
end
problem_dummy=0;
%naming conflict in steady state file
if options.steadystate_flag == 1
if strmatch('ys',M.endo_names,'exact')
disp(['MODEL_DIAGNOSTICS: using the name ys for an endogenous variable will typically conflict with the internal naming in user-defined steady state files.'])
problem_dummy=1;
end
if strmatch('ys',M.param_names,'exact')
disp(['MODEL_DIAGNOSTICS: using the name ys for a parameter will typically conflict with the internal naming in user-defined steady state files.'])
problem_dummy=1;
end
if strmatch('M_',M.endo_names,'exact')
disp(['MODEL_DIAGNOSTICS: using the name M_ for an endogenous variable will typically conflict with the internal naming in user-defined steady state files.'])
problem_dummy=1;
end
if strmatch('M_',M.param_names,'exact')
disp(['MODEL_DIAGNOSTICS: using the name M_ for a parameter will typically conflict with the internal naming in user-defined steady state files.'])
problem_dummy=1;
end
end
%
% missing variables at the current period
%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment