[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: |
Tue, 17 Nov 2020 22:02:57 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #1, bug #59477 (project octave):
If the event function can be a handle that refers to a MEX or .oct file
function, then I don't think we can always have a way to ask it how many
arguments it can accept. So it seems __ode15__ needs to know whether it is
being called to do the work of ode15i or ode15s so it can make the proper
call, or ode15s needs to do something like
options.Events = @(t, y, ~) options.Events (t, y);
to place a wrapper that can accept 3 arguments but only passes 2 of them to
the event function provided by the user.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59477>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/