[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
topic.
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
<https://file.savannah.gnu.org/file/diff-ode_event_handler-20220916.txt?file_id=53699>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63063>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Ken Marek, 2022/09/15
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Ken Marek, 2022/09/15
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly.,
Ken Marek <=
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Ken Marek, 2022/09/16
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Ken Marek, 2022/09/16
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Ken Marek, 2022/09/16
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Arun Giridhar, 2022/09/18
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Nicholas Jankowski, 2022/09/19
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Ken Marek, 2022/09/19
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Ken Marek, 2022/09/19
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events" and "OutputFcn" do not perform correctly., Nicholas Jankowski, 2022/09/19
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events", "OutputFcn", and "Refine" do not perform correctly., Nicholas Jankowski, 2022/09/20
- [Octave-bug-tracker] [bug #63063] ode{23, 45} options "Events", "OutputFcn", and "Refine" do not perform correctly., Ken Marek, 2022/09/20