CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   unset sigfpe (

Tarak June 9, 2011 12:18

unset sigfpe

Can someone let me know how I can unset sigfpe?


newOFuser June 13, 2011 15:03


I'd also like to know.

'I tried "unset FOAM_SIGFPE" in the .bashrc file, but when I run the case, I still get the following before the simulation starts:
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

I tried "export FOAM_SIGFPE=false" as well but that didn't work either.


newOFuser June 13, 2011 19:16

After typing “. $HOME/.bashrc”, do we have to run ./Allwmake in the top-level source directory $WM_PROJECT_DIR as well?

Can anyone who has successfully unset sigFpe provide the details?

Thanks so much.

DrewT October 26, 2011 17:00

I have been getting the floating point errors too. I didn't know how to apply the "unset FOAM_SIGFPE" command either, so I performed this search on the tutorial folder:

find /opt/openfoam201/ * -exec grep -l unset {} \;

This led me to a few cases, including the TJunctionFan in pimpleFoam, which just runs the command in the Allrun file as below:

# Creating patches 'out of nothing' so will get undefined value which
# might cause floating point error

You should be able to just run the unset FOAM_SIGFPE at the command line. I haven't tried it yet, but will soon.

All times are GMT -4. The time now is 22:29.