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

Pstream library error in parallel mode on macOS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2020, 14:42
Default Pstream library error in parallel mode on macOS
  #1
Member
 
Join Date: Oct 2016
Posts: 31
Rep Power: 10
tonnykz is on a distinguished road
Hello,
I have successfully compiled of-v1812 on macOS v10.15.2 using this guide https://github.com/mrklein/openfoam-...ase-&-Homebrew provided by Alexey Matveichev.
preprocessing tools work fine and case runs in serial.
But when I try to run it in parallel using bash script
Code:
#!/bin/sh
cd ${0%/*} || exit 1                        # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions    # Tutorial run functions
#restore0Dir
runApplication blockMesh
runApplication decomposePar
runApplication setFields
#foamJob -parallel multinInterFoam
mpirun -np 6 multiInterFoam -parallel > log.multiInterFoam
#------------------------------------------------------------------------------
i get error:
Code:
--> FOAM FATAL ERROR:
The dummy Pstream library cannot be used in parallel mode


    From function static bool Foam::UPstream::init(int &, char **&, const bool)
    in file UPstream.C at line 46.

FOAM exiting
Interesting that if i run command
Code:
mpirun -np 6 multiInterFoam -parallel > log.multiInterFoam
after preproccesing case everything works fine.


I did read previous threads (Pstream library error in parallel mode and others) about this issue but nothing helped so far.
I have openmpi installed on my system using brew.


Command results:
1. echo $FOAM_MPI
openmpi-system
2. echo $MPI_ARCH_PATH
/usr/local/Cellar/open-mpi/4.0.2
3. /usr/local/bin/mpirun


My ~/.zshrc file end:
Code:
#source /Users/xxx/OpenFOAM/OpenFOAM-v1812/etc/bashrc WM_NCOMPPROCS=6 WM_MPLIB=SYSTEMOPENMPI
source /Users/xxx/OpenFOAM/OpenFOAM-v1812/etc/bashrc
alias paraFoam="touch case.foam && /Applications/paraview.app/Contents/MacOS/paraview --data=case.foam"
alias solvers='cd ~/OpenFOAM/xxx-v1812/applications/solvers/'
My $FOAM_ETC/bashrc file:
Code:
 66 # [WM_COMPILER_TYPE] - Compiler location:
 67 # = system | ThirdParty
 68 export WM_COMPILER_TYPE=system
 69
 70 # [WM_COMPILER] - Compiler:
 71 # = Gcc | Gcc4[8-9] | Gcc5[1-5] | Gcc6[1-4] | Gcc7[1-3] | Gcc8[12] | GccKNL |
 72 #   Clang | Clang3[7-9] | Clang[4-6]0 | Icc | IccKNL | Cray | Arm
 73 export WM_COMPILER=Gcc
 74
 75 # [WM_ARCH_OPTION] - Memory addressing:
 76 # = 32 | 64
 77 #   * on a 64-bit OS this can be 32 or 64
 78 #   * on a 32-bit OS, it is always 32-bit and this option is ignored
 79 export WM_ARCH_OPTION=64
 80
 81 # [WM_PRECISION_OPTION] - Floating-point precision:
 82 # = DP | SP
 83 export WM_PRECISION_OPTION=DP
 84
 85 # [WM_LABEL_SIZE] - Label size in bits:
 86 # = 32 | 64
 87 export WM_LABEL_SIZE=32
 88
 89 # [WM_COMPILE_OPTION] - Optimised, debug, profiling:
 90 # = Opt | Debug | Prof
 91 export WM_COMPILE_OPTION=Opt
 92
 93 # [WM_MPLIB] - MPI implementation:
 94 # = SYSTEMOPENMPI | OPENMPI | SYSTEMMPI | MPI | MPICH | MPICH-GM |
 95 #   HPMPI | CRAY-MPICH | FJMPI | QSMPI | SGIMPI | INTELMPI | USERMPI
Code:
  96 export WM_MPLIB=SYSTEMOPENMPI
I am puzzled by the source of this problem and would be grateful if someone can help me.
Best regards,
Tonnykz
tonnykz is offline   Reply With Quote

Reply

Tags
mac os, openmpi 4, parallel


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
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 08:53
Fluent 14.0 file not running in parallel mode in cluster tejakalva FLUENT 0 February 4, 2015 08:02
parallel mode - small problem? co2 FLUENT 2 June 2, 2004 00:47
TASCflow,problem with script and parallel mode Zbynek Hrncir CFX 0 October 2, 2001 08:30


All times are GMT -4. The time now is 03:43.