# integration - StopIntegration support?

Is there a way to specify a stopping rule or condition like `r[t] < rMin`

when integrating?

Here's an example in Mathematica:

```
s = NDSolve[{r''[t] == -GM / r[t]^2, r[0] = 1000 * s0, r'[0] = 0,
WhenEvent[r[t] < rMin, "**StopIntegration**"]}, r, {t, 0, 86400 * 100}]
```