From b6049c4e4425f3f515e3785a6089a65ef1d3abf7 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Fri, 14 Feb 2020 13:32:52 +0000 Subject: [PATCH] Fix bug in compiler selection. --- sit | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sit b/sit index 5d4295b..e424841 100755 --- a/sit +++ b/sit @@ -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