CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Stop computing when bnanb (http://www.cfd-online.com/Forums/openfoam-solving/60298-stop-computing-when-bnanb.html)

liu March 5, 2006 17:28

Is there a switch or something
 
Is there a switch or something like that we can use to stop the computation when it blows up (i.e. nan is found in the result)?

OpenFOAM is so 'robust' that it even works so hard on these 'nan' numbers.

hjasak March 5, 2006 17:43

Do: setenv FOAM_SIGFPE 1
 
Do:

setenv FOAM_SIGFPE 1

and it will fail on the first nan. You can put it into your .cshrc (or do the equivalent thing in the .bashrc if you're running bash).

Hrv

liu March 5, 2006 18:33

Thank you. That will be ver
 
Thank you.

That will be very helpful.


All times are GMT -4. The time now is 02:13.