When a PeriodicCallback with initial_affect=true is embedded in an ODEProblem it is called twice, but not if it is provided as a keyword argument to solve directly
Expected behavior
The periodic callback is called only once when it's provided to solve.
Describe the bug 🐞
When a PeriodicCallback with
initial_affect=true
is embedded in an ODEProblem it is called twice, but not if it is provided as a keyword argument tosolve
directlyExpected behavior
The periodic callback is called only once when it's provided to solve.
Minimal Reproducible Example 👇
Error & Stacktrace ⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()