Added generic handling for the location of the MPI libraries by adding the

MPI_ARCH_PATH environmevt variable.
This commit is contained in:
henry
2008-06-04 16:11:56 +01:00
parent c4083ccbc8
commit d118e10d93
3 changed files with 11 additions and 27 deletions

View File

@ -55,26 +55,7 @@ addMpiSupport ()
{
[ "$INCLUDE_MPI" = ON ] || return
# using OpenFOAM variables to identify location of MPI libraries
case "$WM_MPLIB" in
OPENMPI)
MPI_ARCH_PATH=$OPENMPI_ARCH_PATH
MPI_LIBRARY=$OPENMPI_ARCH_PATH/lib/libmpi.so
;;
LAM)
MPI_ARCH_PATH=$LAM_ARCH_PATH
MPI_LIBRARY=$LAM_ARCH_PATH/lib/libmpi.so
;;
MPICH)
MPI_ARCH_PATH=$MPICH_ARCH_PATH
MPI_LIBRARY=$MPICH_ARCH_PATH/lib/libmpich.so
;;
*)
echo "*** Error: unknown/unsupported mpi: $WM_MPLIB"
exit 1
;;
esac
MPI_LIBRARY=$MPI_ARCH_PATH/lib/libmpi.so
MPI_INCLUDE_PATH=$MPI_ARCH_PATH/include
MPI_RUN=$MPI_ARCH_PATH/bin/mpirun