Commit 44a66417 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Bugfix for simult_.m when used with k_order_pert and pruning at order=1

In the rare combination of k_order_solver, pruning, and order=1 the steady state was not subtracted from the starting values when doing simulations
parent 29ff6685
......@@ -47,7 +47,7 @@ if options_.order == 3
options_.k_order_solver = 1;
if ~options_.k_order_solver
if ~options_.k_order_solver || (options_.k_order_solver && options_.pruning) %if k_order_pert is not used or if we do not use Dynare++ with k_order_pert
if iorder==1
y_(:,1) = y_(:,1)-dr.ys;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment