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

:bug: subst_auxvar.m: account for auxiliary type 5

Fixes crashes in model_info with differentiate_forward_vars
parent 5c66a74e
No related branches found
Tags
1 merge request!2331:bug: subst_auxvar.m: account for auxiliary type 5
...@@ -59,8 +59,8 @@ if ~isempty(aux_index) ...@@ -59,8 +59,8 @@ if ~isempty(aux_index)
% Expectation operator % Expectation operator
str = sprintf('%s', M_.aux_vars(aux_index).orig_expr); str = sprintf('%s', M_.aux_vars(aux_index).orig_expr);
return return
case 6 case {5,6}
% Ramsey's multipliers % differentiate_forward_vars and Ramsey multipliers
if ~isempty(aux_lead_lag) if ~isempty(aux_lead_lag)
str = sprintf('%s(%d)', M_.endo_names{M_.aux_vars(aux_index).endo_index}, aux_lead_lag); str = sprintf('%s(%d)', M_.endo_names{M_.aux_vars(aux_index).endo_index}, aux_lead_lag);
else else
......
...@@ -88,6 +88,7 @@ end; ...@@ -88,6 +88,7 @@ end;
steady; steady;
check; check;
model_info;
perfect_foresight_setup(periods=500); perfect_foresight_setup(periods=500);
perfect_foresight_solver; perfect_foresight_solver;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment