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/)
-   -   unset sigfpe (http://www.cfd-online.com/Forums/openfoam-solving/89326-unset-sigfpe.html)

Tarak June 9, 2011 12:18

unset sigfpe
 
Hii,

Can someone let me know how I can unset sigfpe?

Thank,
Tarak

newOFuser June 13, 2011 15:03

Hi

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.

ak

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
unset FOAM_SIGFPE
unset FOAM_SETNAN

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 19:07.