Skip to content
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

PresetTimeCallback: filter out tstop of 0.0 #215

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

visr
Copy link
Contributor

@visr visr commented Apr 2, 2024

In #212 the behavior of filter_tstops was changed, note that the < became a <=.

https://github.com/SciML/DiffEqCallbacks.jl/pull/212/files#diff-40390d05d98d137d2045d5d61bdf194384f4e70b8778170c7d8af50143406d76R54-R57

I'm not sure if that was done intentionally but it is causing some issues. For instance, in the modified test from this PR, calling solve!(integrator) still works, but if I do step!(integrator) it aborts because it wants to step from 0 to 0.

Warning: dt(0.0) <= dtmin(0.0) at t=0.0, and step error estimate = 1.0. Aborting. There is either an error in your model specification or the true solution is unstable.

@visr
Copy link
Contributor Author

visr commented Apr 10, 2024

@oscardssmith could you confirm if this was an unintentional regression from #212?

@oscardssmith
Copy link
Contributor

Yeah. this change looks correct to me.

@ChrisRackauckas ChrisRackauckas merged commit de1e035 into SciML:master Apr 11, 2024
9 of 10 checks passed
@visr visr deleted the gt branch April 11, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants