continuous_events
can cause solver to get stuck at event crossing
#3327
Labels
bug
Something isn't working
Describe the bug 🐞
continuous_events
can cause solver to get stuck at event crossing.Expected behavior
I would expect this example to take a relatively small number of time steps (<20 probably). Instead it took 1999997 steps at the first event crossing.
Minimal Reproducible Example 👇
Note that I'm using a dummy
_t
variable for time here because I wanted to make sure the issue wasn't the fact that thecontinuous_events
didn't depend on the state of the system. I also needed that so we'd have something to integrate so the solver would take steps.If we comment out the
continuous_events
section, things run fine, so the model itself is at least working.Error & Stacktrace⚠️
No error, it just prints a
Larger maxiters is needed
and outputs something that looks like this:Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: