Skip to content
Snippets Groups Projects
Commit 078c2b7b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'model_info' into 'master'

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

See merge request Dynare/dynare!2331
parents f1c1a358 8313cd5e
No related branches found
No related tags found
No related merge requests found
...@@ -279,7 +279,6 @@ function print_line(names,var_index,lead_lag,M_) ...@@ -279,7 +279,6 @@ function print_line(names,var_index,lead_lag,M_)
end end
else else
aux_index=find([M_.aux_vars(:).endo_index]==var_index); aux_index=find([M_.aux_vars(:).endo_index]==var_index);
aux_type=M_.aux_vars(aux_index).type;
if lead_lag==0 if lead_lag==0
str = subst_auxvar(var_index, [], M_); str = subst_auxvar(var_index, [], M_);
else else
......
...@@ -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