Yeah that’s how it’s done. Just use a DiscreteCallback (or PresetTimeCallback). That’s how the adjoint system handles Dirac deltas.
3 Likes
Yeah that’s how it’s done. Just use a DiscreteCallback (or PresetTimeCallback). That’s how the adjoint system handles Dirac deltas.