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

EM solver accepts incompatible tstop #413

Open
thevolatilebit opened this issue Apr 23, 2021 · 1 comment
Open

EM solver accepts incompatible tstop #413

thevolatilebit opened this issue Apr 23, 2021 · 1 comment

Comments

@thevolatilebit
Copy link

We get Something went wrong. Integrator stepped past tstops but the algorithm was dtchangeable. Please report this error. when calling

f(u, p, t) = 1
p = SDEProblem(f, f, [1], (0, 1))
i = init(p, EM(); dt=.02)
add_tstop!(i, 0.01)
step!(i)

For LambdaEM this yields Tried to add a tstop that is behind the current time. This is strictly forbidden as expected.

@ChrisRackauckas
Copy link
Member

Ahh yes, that check may only be done when adaptive=true, and it probably needs to always be done.

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

No branches or pull requests

2 participants