Can you prevent Julia from erroring out when solving ODE problem, if Domain Error arises?

Set isoutofdomain but do abs(u[1])^0.8. That way it won’t error but it will also reject any step where it goes negative.

4 Likes