diffrax icon indicating copy to clipboard operation
diffrax copied to clipboard

Safety of taking a delta t = 0 step?

Open nstarman opened this issue 11 months ago • 2 comments

If doing a manual step with an AbstractSolver is it always safe to take a step size with time difference of 0?

solver.step(..., t0, t0, ...)

nstarman avatar Feb 15 '25 14:02 nstarman

Depends on the solver! One could put anything behind that interface.

As a practical matter I think all of the built-in ones for Diffrax should be safe for this (but I've not extensively tested).

patrick-kidger avatar Feb 15 '25 18:02 patrick-kidger

If there's a minimum step size on a solver, maybe there should be a flag or attribute or property that can be checked!

solver.minimum_delta_t

Otherwise, this may even be hit with diffeqsolve if dt0 is small enough.

nstarman avatar Feb 16 '25 15:02 nstarman