Count of diff eq callbacks

Egwene_al_Vere
Mon, 21 Oct 2024 17:39:18 +0000
General Usage

using DiscreteCallback, is there a built-in way to know the number of times the affect! function is called both inside the affect! function and after solve/step! call is completed? current;y, i’m using a ref value in the p parameter of the integrator as

p=(;c=Ref(0))

and doing integrator.p.c[] += 1 inside the callback function. Is this info already built-in in the integrator or solution object? The ncondition in DEStats shows =condition function call count, not affect call count…

1 post - 1 participant