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

That can be handled via the callback systems, syncing the clock by having the discrete systems add tstops to the others.

I did a full write up here:

Basically, there are ways to work around it right now. We will be fully automating it, but it will take a little bit. And I put a suggestion in there for how to hand code it in a way that’s the most performant

2 Likes