You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to understand the order of evaluation of a callback and an ode function. It seems somewhat cryptic. The callback seems to go before the ode function at first but then switches to going after, in effect skipping one step in-between.
Described on Slack, this is because tspan[1] is in the time choice and thus initialize! is setup so that it calls the affect! at time 0. This is a special behavior to ensure correctness, given that the user in this instance told us of the special case that there should be an event applied before the start of the simulation.
I am trying to understand the order of evaluation of a callback and an ode function. It seems somewhat cryptic. The callback seems to go before the ode function at first but then switches to going after, in effect skipping one step in-between.
Output:
The text was updated successfully, but these errors were encountered: