If I have a differential equation of the form:
NDSolve[{...}, {x, y, z}, {t, 0, 2}, WorkingPrecision -> 30,
MaxSteps -> Infinity, Method -> Automatic, InterpolationOrder -> All]
and I get a singularity at a specific point of t, for example if an object falls into a black hole, which leads to an error message like this:
Is it possible to assign that value, here 1.2574' to a variable automatically, so that I can plot exactly until this point is reached?
If I just copy and paste that value manually I often end up a bit too early or too late, maybe because of roundig errors. Is there a way to automatically assign some variable χ to it, so that I can do a
Plot[..., {t, 0, χ}]
or do I have to copy and paste, and then play around with the last digits of the error message until I get as close to the singularity as possible?