Reset state at fix time step during ODE integration


I am looking for a way to reset the FieldODEState at a fixed time step during the integration with FieldODEIntegrator.

Ideally, I would implement a FieldODEFixedStepHandler to do so. However, step handlers do not have the capability to modify the integrator state.

The only way I see to achieve this is to implement a FieldODEEventHandler whose g function is designed to trigger the event at a fixed time step. Then I can use resetState to reset the integrator state.

Is there any better way to achieve this without involving event handlers?