-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
CVODE_BDF: Event points are not stored #309
Comments
The following workaround does not work (
The following workaround works (is a "hack" - not clear whether it will always work):
and produces the correct output:
|
The proposed work-around does not work, because the value of "sol.u" is wrong at the event (not clear why). Changing the workaround by first copying integrator.u into a vector and then copying this vector into sol.u, gives a correct solution:
|
It sounds like the issue is just that Try that branch and see if that fixes it. If so, we can make this a test case. |
Take the following bouncing ball model
If CVODE_BDF is used, then sol.t is:
so no event points are stored in "sol". If integrator Tsit5() is used, the correct output is produced:
The text was updated successfully, but these errors were encountered: