Quick question on this topic @ChrisRackauckas. The posted solution above uses functionality from the IfElse.jl package, though it seems like the package itself is archived? Is IfElse going to be deprecated?
In general, if I have an ODE problem that requires if statements in each update step depending on the state of the integrator, it seems one could either (i) use the IfElse functionality as listed above, or (ii) use a DiscreteCallback . Is there any reason to use one over the other in terms of performance?