Skip to content

Commit 34c9ec6

Browse files
Fix event problem solver options
1 parent 3343dab commit 34c9ec6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/+otp/Problem.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ function validateNewState(obj, newTimeSpan, newY0, newParameters)
227227
end
228228

229229
% TODO: Octave does not support odextend
230-
sol = odextend(sol, problem.RHS.F, problem.TimeSpan(end), problem.Y0, options);
230+
options = problem.RHS.odeset(unmatched{:});
231+
sol = odextend(sol, problem.RHS.F, problem.TimeSpan(end), ...
232+
problem.Y0, options);
231233
end
232234
end
233235
end

0 commit comments

Comments
 (0)