Stack smashing detected by SOWFA & fast v8
Hi all,
I am compiling the NREL SOWFA coupled with fast v8 into foam-extend-4.0. The compilation has succeeded. My solver can even run smoothly in one machine of mine. However, in some other machines (PC or Cluster). I get the error "stack smashing detected". I compared almost everything (version of gcc, cmake, openmpi etc.) between both machines, and they are all the same. I am so confused. This is the error given by my terminal: Code:
*** stack smashing detected ***: WEI_Jesse_IB_static_1 terminated Best regards, Wang |
SOWFA + foam-extend
Could you perhaps elaborate on how you did the installation?
I'm guessing most are using 2.3 or 2.4, so it would great to hear your experience with foam-extend 4.0. Does the installation procedure change? |
Quote:
1) The compilation process does not change significantly. The portion used by SOWFA is quite similar for OpenFOAM 2.4 and foam-extend-4.0. I didn't have to change much code. The only change I could remember was that I had to define PI=3.14159 in foam-extend-4.0. I am sure there should be nothing sophisticated. 2) When I compiled it on PC, I compiled with openmpi, foam-extend default version. Everything worked. 3) When I compiled it on my cluster, Openmpi didn't really work. Instead of saying I solved this issue, I would say I circumvented it. I contacted my cluster administrator to ask the issue of openmpi, and they told me just don't use it. They recommended me to use Intelmpi that was already embedded in the cluster. To do that, I edited the file '~/foam/foam-extend-4.0/etc/bashrc' and set ${WM_MPLIB:=INTELMPI}, then I compiled foam-extend and SOWFA. I have been using this solution for years and I am quite happy with it. Best regards, Chengyu |
All times are GMT -4. The time now is 15:51. |