DiffEqs: Hybrid (continuous+discrete) system / periodic callback

Yup, tstops + DiscreteCallback is a good way to do it. Or just use the integrator interface.

1 Like