From 1474a6b7b1540705b8fb1f289f4ea3ac0eb74e98 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Thu, 28 Mar 2024 03:50:48 +0100 Subject: [PATCH] Fix issues with system platform target in absence of a system module Signed-off-by: Christoph Niethammer --- sit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sit b/sit index c2d3ede..173d704 100755 --- a/sit +++ b/sit @@ -143,7 +143,12 @@ case $PLATFORM in esac echo "Loading modules: ${COMPILER_MODULE} ${MPI_MODULE}" -module load ${COMPILER_MODULE} ${MPI_MODULE} +if [ ! -z "$COMPILER_MODULE" ] ; then + module load ${COMPILER_MODULE} +fi +if [ ! -z "$MPI_MODULE" ] ; then + module load ${MPI_MODULE} +fi if [ ! -z "${COMPILER}" ] ; then # reevaluate compiler version