Tom:
you don't say how you want that to happen. There are many ways in which you
can limit psi to that range:
* You can change the equations in such a way that they only produce psi values
in that range
* You can just cut off values that are larger
* You can transform values, for example you can transform
psi -> atan(psi)*10/(pi/2)
In other works, your question describes what you want to be (a state) rather
than how you want to get there (an action). Software describes actions, not
states, and you first need to think of what you want that action to be.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/