From 8f74c65c115b33016080c027f6bca4307de5e132 Mon Sep 17 00:00:00 2001 From: Elke Flehmig Date: Thu, 14 Mar 2013 12:26:44 +0000 Subject: [PATCH] set MPICXX and MPIFC for gnu/intel compilers --- sit | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sit b/sit index fbef2a2..5d210ea 100755 --- a/sit +++ b/sit @@ -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