-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiscreteCallback finalize
not getting called at end of solve()
.
#931
Comments
I don't think finalize ever got finalized (pun not intended). It would be good to actually get that completed and documented. |
@oscardssmith could you help with this? |
fixes SciML/DiffEqBase.jl#931 (although we probably need a similar line added for `Sundials.jl`)
Do we have a good example of a use-case for this to add to the tests? |
It's pretty easy, just create a |
right, but testing for the presence of an |
The docs say:
So my intuition says that it should not be allowed to affect the final |
That's exactly what I would do; just increment a global and check that it was incremented the correct number of times. |
I would expect that at the end of
solve()
, allfinalize
callback methods would be getting called, however that does not appear to be the case:Only ever prints
initialized
The text was updated successfully, but these errors were encountered: