|
[Sponsors] |
[foam-extend.org] Foam Extend parallel using Mac OSX |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 12, 2014, 15:27 |
Foam Extend parallel using Mac OSX
|
#1 |
Member
sampath
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Hi all,
I am using FoamExtend 3.1 for my simulations. It runs fine using the sparseimage on mac osx in serial but doesn't run in parallel. Any leads on resolving this issue would be appreciated. Thank You. |
|
December 12, 2014, 16:57 |
|
#2 |
Senior Member
|
Hi,
Do I get you right: you're proposing someone to download sparseimage, mount it, and run parallel simulation from tutorial to see the error? And it's not the fact that person will get the same error you're getting on your computer. |
|
December 17, 2014, 10:09 |
|
#3 |
Member
sampath
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Hi Alexey,
In fact, what I intended to ask was, how do one run parallel simulations on OSX. I have tried running the tutorial cases in serial and they run. But when I try running in parallel using mpirun, I get the following error: "--> FOAM FATAL ERROR: Trying to use the dummy Pstream lib --> FOAM FATAL ERROR: Trying to use the dummy Pstream library. This dummy library cannot be used in parallel mode From function Pstream::init(int& argc, char**& argv) in file Pstream.C at line 39. FOAM exiting" |
|
December 17, 2014, 12:37 |
|
#4 |
Senior Member
|
Hi,
This message usually means that foam-extend was built without MPI support. What is the value of WM_MPLIB environment variable? |
|
December 29, 2014, 21:47 |
|
#5 |
Member
sampath
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Hi,
I am sorry for getting back late on this. This is what it reads. Code:
export WM_USE_MACPORT=1 export WM_BASE_COMPILER=`echo $WM_COMPILER | tr -d "[:digit:]"` export WM_MACPORT_MPI_VERSION=`echo $WM_COMPILER | tr "[:upper:]" "[:lower:]"` export WM_MACPORT_VERSION=`echo $WM_MACPORT_MPI_VERSION | tr -d "[:alpha:]" | sed -e "s/\(.\)\(.\)/\1\.\2/"` if [ -z "$WM_CHOSEN_MAC_MPI" ] then if [ -e '/opt/local/bin/mpicc' ] then readlink /opt/local/bin/mpicc | grep openmpi >/dev/null if [ $? -eq "0" ] then export WM_MPLIB=MACPORTOPENMPI if [ "$FOAM_VERBOSE" -a "$PS1" ] then echo "Using OpenMPI from MacPorts" fi else readlink /opt/local/bin/mpicc | grep mpich >/dev/null if [ $? -eq "0" ] then export WM_MPLIB=MACPORTMPICH if [ "$FOAM_VERBOSE" -a "$PS1" ] then echo "Using MPICH from MacPorts" fi else echo "/opt/local/bin/mpicc neither OpenMPI nor MPICH. Confused. Defaulting to OPENMPI" export WM_MPLIB=OPENMPI fi fi fi else export WM_MPLIB=$WM_CHOSEN_MAC_MPI if [ "$FOAM_VERBOSE" -a "$PS1" ] then echo "User chose WM_CHOSEN_MAC_MPI=$WM_CHOSEN_MAC_MPI" fi fi if [ "$WM_MPLIB" == "MACPORTOPENMPI" ] then if [ ! -e "/opt/local/lib/openmpi-$WM_MACPORT_MPI_VERSION" ] then export WM_MACPORT_MPI_VERSION=mp if [ ! -e "/opt/local/lib/openmpi-$WM_MACPORT_MPI_VERSION" ] then echo "Proper OpenMPI not installed. Either do 'port install openmpi-$WM_MACPORT_MPI_VERSION' or 'port install openmpi-default'" fi fi else if [ "$WM_MPLIB" == "MACPORTMPICH" ] then if [ ! -e "/opt/local/lib/mpich-$WM_MACPORT_MPI_VERSION" ] then echo "MPICH wants the same version as the used compiler. Do 'port install mpich-$WM_MACPORT_MPI_VERSION'" fi if [ "$WM_MPLIB" == "MACPORTOPENMPI" ] then if [ ! -e "/opt/local/lib/openmpi-$WM_MACPORT_MPI_VERSION" ] then export WM_MACPORT_MPI_VERSION=mp if [ ! -e "/opt/local/lib/openmpi-$WM_MACPORT_MPI_VERSION" ] then echo "Proper OpenMPI not installed. Either do 'port install openmpi-$WM_MACPORT_MPI_VERSION' or 'port install openmpi-default'" fi fi else if [ "$WM_MPLIB" == "MACPORTMPICH" ] then if [ ! -e "/opt/local/lib/mpich-$WM_MACPORT_MPI_VERSION" ] then echo "MPICH wants the same version as the used compiler. Do 'port install mpich-$WM_MACPORT_MPI_VERSION'" fi fi fi I have one more question, is there a way I can install OF without having to use the sparseimage on the MAC OSX? Last edited by wyldckat; December 30, 2014 at 14:28. Reason: Added [CODE][/CODE] |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
MPI error in parallel application | usv001 | OpenFOAM Programming & Development | 2 | September 14, 2017 12:30 |
simpleFoam in parallel issue | plucas | OpenFOAM Running, Solving & CFD | 3 | July 17, 2013 12:30 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |