set MPICXX and MPIFC for gnu/intel compilers

This commit is contained in:
Elke Flehmig 2013-03-14 12:26:44 +00:00 committed by Christoph Niethammer
parent f087f698ac
commit 8f74c65c11

14
sit
View file

@ -101,7 +101,19 @@ if [ ! -z "$MPI" ] ; then
fi
echo "Loading MPI module ${MPI_MODULE}"
module load $MPI_MODULE
MPICC="mpicc"
case $COMPILER in
gnu)
MPICC="mpicc"
MPICXX="mpicxx"
MPIFC="mpif90"
;;
intel)
MPICC="mpiicc"
MPICXX="mpiicpc"
MPIFC="mpiifort"
;;
esac
MPI_DIR=${MPI_DIR:=$(dirname $(dirname $(which $MPICC)))}
fi