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

[foam-extend.org] Foam Extend parallel using Mac OSX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2014, 15:27
Default Foam Extend parallel using Mac OSX
  #1
Member
 
sampath
Join Date: Sep 2014
Posts: 37
Rep Power: 12
sampy is on a distinguished road
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.
sampy is offline   Reply With Quote

Old   December 12, 2014, 16:57
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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.
alexeym is offline   Reply With Quote

Old   December 17, 2014, 10:09
Default
  #3
Member
 
sampath
Join Date: Sep 2014
Posts: 37
Rep Power: 12
sampy is on a distinguished road
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"
sampy is offline   Reply With Quote

Old   December 17, 2014, 12:37
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

This message usually means that foam-extend was built without MPI support. What is the value of WM_MPLIB environment variable?
alexeym is offline   Reply With Quote

Old   December 29, 2014, 21:47
Default
  #5
Member
 
sampath
Join Date: Sep 2014
Posts: 37
Rep Power: 12
sampy is on a distinguished road
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
The path for the current mpirun is "/opt/local/bin/mpirun".

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]
sampy 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
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


All times are GMT -4. The time now is 15:54.