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 simulationstime-shift
parent
29ff66856a
commit
44a6641782
|
@ -47,7 +47,7 @@ if options_.order == 3
|
|||
options_.k_order_solver = 1;
|
||||
end
|
||||
|
||||
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;
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue