CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Floating Point Exception

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2010, 16:52
Default Floating Point Exception
  #1
Member
 
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23
pi06jl6 will become famous soon enough
Greetings all,

My program halts with the old classical "Floating Point Exception", at snGrad.

Some relevant details:

1. Operative system is Debian 64 bits
2. OpenFoam 1.6
3. Single thread, icoFoam+DragLift.H
4. This code worked on OpenFoam 1.5 and 32 bits
5. Same test case for 64 and 32 bits
6. Tutorials like icoFoam works fine.

So basically i moved from a 32 bit to 64 bit OS and changed on the way OF1.5 to OF1.6.

My Q:

What is the cause of the of problem and how to resolve this?

Would appriciate a swift answer to this important problem.

Best Regards

Johan
pi06jl6 is offline   Reply With Quote

Old   June 8, 2010, 18:54
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Johan,

Swift answer: HowTo debugging in openfoamwiki.net

Not so swift: Possibly something changed in the definitions of boundary conditions between OF 1.5 and 1.6. Check the official --> release notes <-- or compare the tutorial you used as reference in OF 1.5 with the one in OF 1.6

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 16, 2010, 06:12
Default Floating point exception
  #3
Member
 
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23
pi06jl6 will become famous soon enough
Quote:
Originally Posted by wyldckat View Post
Greetings Johan,

Swift answer: HowTo debugging in openfoamwiki.net

Not so swift: Possibly something changed in the definitions of boundary conditions between OF 1.5 and 1.6. Check the official --> release notes <-- or compare the tutorial you used as reference in OF 1.5 with the one in OF 1.6

Best regards,
Bruno
Thank you for the suggestion, the link was indeed interesting!

I tried toggle of these FOAM_SIGFPE and FOAM_SETNAN, but i didnt see any difference. One has to recompile the whole package? I though wmake of the case itself was enought.

Anyone? Would like to avoid recompile the package.

Important additional information, the program doesnt halt at first "encounter", rather randomly, cant see any pattern and it would provide anything good to paste the logs. From what i see it, its about i am using corrected method in sngrad and i can understand that this is floating point sensitive for special case flow as it appears flow around a body.

The crucial difference is that i have same case from 32 bits, which worked excellent, when i run the same case in 64 bits, i get this floating point exception.

Anyone who could provide me with usefil tip in how to twink to improve the solver i am using, should i go to uncorrected? The drag contribution to my FSI case is very low so have a robust drag estimator is to prefer.

In worst case scenario i will write an own routine. would like to avoid this so i appriciate any input to resolve this urgent matter.

Best Regards

Johan
pi06jl6 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating point exception error Alan OpenFOAM Running, Solving & CFD 11 July 1, 2021 21:51
floating point exception? syd STAR-CCM+ 3 April 20, 2010 18:55
Floating point exception error with small DeltaT rassilon OpenFOAM Running, Solving & CFD 19 September 2, 2009 07:39
turbFoam floating point exception and k-epsilon Hectux OpenFOAM Running, Solving & CFD 4 April 28, 2009 07:10
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 02:27


All times are GMT -4. The time now is 14:50.