Commit 38827443 authored by Sébastien Villemot's avatar Sébastien Villemot

Fix simult_.m when order=3 but k_order_solver has not been specified

parent cc79c823
......@@ -39,6 +39,12 @@ iter = size(ex_,1);
y_ = zeros(size(y0,1),iter+M_.maximum_lag);
y_(:,1) = y0;
% stoch_simul sets k_order_solver=1 if order=3, but does so only locally, so we
% have to do it here also
if options_.order == 3
options_.k_order_solver = 1;
if ~options_.k_order_solver
if iorder==1
y_(:,1) = y_(:,1)-dr.ys;
Markdown is supported
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