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…