-
Notifications
You must be signed in to change notification settings - Fork 245
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
Rewinding integrator #704
Comments
You can use |
Indeed Consider the following simple problem:
Now assume at
Assume at
The problem is the following:
It would be worth with the Below an example of the manifestation of the problem in the case |
I tried solving by using
but this gives the error (occurring at the end of the integration, not at the moment of resizing)
|
You'll also need to reset |
This is perfect. Indeed it works. The only problem now is that if one has a PresetTimeCallback this interferes with the reset of the integrator. Specifically, if I take again the example from before
This code would work perfectly in the absence of this new PresetTimeCallback Interestingly, not using
does not give this problem. Is this something that should be fixed in the PresetTimeCallback or am I mistaking? |
I'd need an MWE for this. |
I am looking for a way to rewind the integrator to the state it had in a previous time. Specifically, I want to use a continuous callback to monitor some condition. When this condition is satisfied I want to go back Delta_t in time, modify the solution in that point, and start the integration back from there.
Is there a way to do so?
The text was updated successfully, but these errors were encountered: