[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59477] __ode15__.cc does not consider the num
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #59477] __ode15__.cc does not consider the number of arguments in the event function |
Date: |
Wed, 18 Nov 2020 10:11:15 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #2, bug #59477 (project octave):
The attached patch should work, but at the cost of an additional function
handle evaluation for each call to the events function. If that is too much,
then I think the better solution would be to change __ode15__ to call the
events function with the correct number of inputs depending on whether it is
called for ode15i or ode15s. If we go that direction, I would do it by adding
a parameter or option to __ode15__, not by examining the call stack.
(file #50296)
_______________________________________________________
Additional Item Attachment:
File name: odf15s-events-diff.txt Size:1 KB
<https://file.savannah.gnu.org/file/odf15s-events-diff.txt?file_id=50296>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59477>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/