Fix bug in compiler selection.

This commit is contained in:
Christoph Niethammer 2020-02-14 13:32:52 +00:00
parent fd85082f18
commit b6049c4e44

17
sit
View file

@ -132,15 +132,6 @@ else
fi
MPI_DIR=$MPICH_DIR
;;
laki|vulcan|*)
if [ -z "$COMPILER_VERSION" ] ; then
COMPILER_MODULE=compiler/${COMPILER}
else
COMPILER_MODULE=compiler/${COMPILER}/${COMPILER_VERSION}
fi
echo "Loading compiler module ${COMPILER_MODULE}"
module load ${COMPILER_MODULE}
;;
hawk)
if [ -z "$COMPILER_VERSION" ] ; then
COMPILER_MODULE=${COMPILER}
@ -150,6 +141,14 @@ else
echo "Loading compiler module ${COMPILER_MODULE}"
module load ${COMPILER_MODULE}
;;
laki|vulcan|*)
if [ -z "$COMPILER_VERSION" ] ; then
COMPILER_MODULE=compiler/${COMPILER}
else
COMPILER_MODULE=compiler/${COMPILER}/${COMPILER_VERSION}
fi
echo "Loading compiler module ${COMPILER_MODULE}"
module load ${COMPILER_MODULE}
;;
esac
fi