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
time-shift
Johannes Pfeifer 2013-05-11 12:14:11 +02:00
parent 29ff66856a
commit 44a6641782
1 changed files with 1 additions and 1 deletions

View File

@ -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