Added support for the MVAPICH2 MPI implementation

This commit is contained in:
Henry Weller
2018-03-07 21:32:19 +00:00
parent 1073607cb0
commit c41efee594
3 changed files with 21 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
@ -149,6 +149,14 @@ MPICH-GM)
_foamAddLib $GM_LIB_PATH
;;
MVAPICH2)
export FOAM_MPI=mvapich2
libDir=`mpicc -show -cc= | sed -e 's/.*-L\([^ ]*\).*/\1/'`
export MPI_ARCH_PATH="${libDir%/*}"
_foamAddLib $libDir
unset libDir
;;
HPMPI)
export FOAM_MPI=hpmpi
export MPI_HOME=/opt/hpmpi