Callback at every 3 integrator steps in DIfferential equations.jl

Hi there,

This is a pretty basic question. I wanted to create a callback function which works after every 3 integrator steps. Since the time-steps are adaptive and hence unknown, is there any integrator options I could use in the condition function. I am using Tsit5() as solver.

One way to do that would be to use Discrete Callbacks in prerequisite times but I dont want it to stop at extra timesteps.

I would be very grateful for any help.

condition(u,t,integrator) = integrator.iter % 3 == 0
4 Likes

Thanks a lot

Any chance this could become a documented field? :crossed_fingers:

yes