From: Shawn Garbett on
I read an earlier thread titled 'How can I "perturbate" a NDSolve
expresion?'. It came close to what I need to do. I didn't understand
the nature of 'a' in NDSolve. Are there any references for this.

I have a function that is part of the equations to solve, but when one
variable crosses a threshold from below I need the current value of
another variable to be cut in half. So I really have two problems, one
how do I monitor a variable that NDSolve is working on for crossing a
threshold from below? and secondly, how do I modify a variable in
NDSolve without throwing error flags on accuracy checks? It's sort of
a triggered perturbation.