[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "Outp

From: Ken Marek
Subject: [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly.
Date: Fri, 16 Sep 2022 14:30:43 -0400 (EDT)

Follow-up Comment #2, bug #63063 (project octave):

I am attaching a diff file that fixes test case 2, i.e. Octave only returning
one event per step when more than one is present. I think these are the only
changes needed for ode_event_handler.m with respect to this bug report. There
are more fixes to come with integrate_adaptive.m, so please don't close this
report yet.

This fix allows multiple events to be returned per step. It also sorts by
time, and clips any events occurring after a terminal event. Matlab does some
interesting things with events in the first step, and I don't claim to have
matched everything exactly (that's for another bug report at a later time),
but I believe I have avoided any regressions of prior bug fixes on that

I should probably mention that I am comparing to Matlab R2017b.

(file #53699)


Additional Item Attachment:

File name: diff-ode_event_handler-20220916.txt Size:4 KB


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]