|
[Sponsors] |
plateHole in solidMechanics/elasticSolidFoam fails checkMesh in Opt but runs in Debug |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 10, 2015, 01:54 |
plateHole in solidMechanics/elasticSolidFoam fails checkMesh in Opt but runs in Debug
|
#1 |
Member
Ripudaman Manchanda
Join Date: May 2013
Posts: 55
Rep Power: 13 |
Hi,
I am using foam-extend-3.2 on Mac OS 10.10 The plateHole case in solidMechanics/elasticSolidFoam gives a floating point error when I try to run the case. The mesh looks okay in paraview. However, when I run checkMesh on the mesh, it gives the same Floating Point Error. These errors go away in debug mode and the case runs fine. This also happens in the slidingFrictionBall case in the same elasticSolidFoam solver. I pulled the latest version of the master branch and compiled it to test this out again but to no avail. Please help. Thank you. Ripu P.S. This has been posted as a bug on the foam-extend bug tracker on source forge |
|
November 10, 2015, 12:46 |
more information
|
#2 |
Member
Ripudaman Manchanda
Join Date: May 2013
Posts: 55
Rep Power: 13 |
I dug deeper and found that the error occurs in the creation of the mesh object in createNamePolyMesh.H (lines 21-30)
Code:
Foam::polyMesh mesh ( Foam::IOobject ( regionName, runTime.timeName(), runTime, Foam::IOobject::MUST_READ ) ); I need help with this. Also, is there any other way of getting an error stack for this? Since the code runs fine in Debug mode... I do not know how to proceed and get the source of the error. Thank you. Ripu |
|
November 12, 2015, 13:26 |
Works in Linux and Windows
|
#3 |
Member
Ripudaman Manchanda
Join Date: May 2013
Posts: 55
Rep Power: 13 |
So this actually seems like a problem inherent to the Mac OS. It occurs both in Yosemite (10.10) as well as El Capitan (10.11). The plateHole case does work in Win 7 and Ubuntu 14.04.
Here are my Mac etc/bashrc file changes: Code:
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI | MVAPICH2 : ${WM_MPLIB:=MACPORTOPENMPI}; export WM_MPLIB # : ${WM_MPLIB:=OPENMPI}; export WM_MPLIB Code:
# Compiler: set to Gcc or Icc (for Intel's icc) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ : ${WM_COMPILER:=Gcc46}; export WM_COMPILER # : ${WM_COMPILER:=Gcc}; export WM_COMPILER #: ${WM_COMPILER:=Icc}; export WM_COMPILER |
|
December 1, 2015, 19:08 |
Change the GCC version to fix this....
|
#4 |
Member
Ripudaman Manchanda
Join Date: May 2013
Posts: 55
Rep Power: 13 |
I was able to solve the issue by changing the GCC version
GCC48 on pre ElCapitan and GCC49 on ElCapitan |
|
Tags |
checkmesh, foam-extend-3.2, platehole |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GGI and Topological changes - checkMesh fails | strakakl | OpenFOAM Programming & Development | 4 | November 10, 2019 06:48 |
Problem in Implementing a non-linear SGS model | huangxianbei | OpenFOAM Programming & Development | 30 | September 20, 2015 14:26 |
[OpenFOAM] could not open file .vtk in paraview | ali_atrian | ParaView | 8 | August 27, 2014 11:31 |
[Other] CheckMesh fails when cyclic boundaries are defined - OF 2.2.0 | caduqued | OpenFOAM Meshing & Mesh Conversion | 2 | May 21, 2013 19:31 |
Compiling checkMesh fails | kjetil | OpenFOAM Installation | 1 | February 8, 2010 12:05 |