diff --git a/ush/module-setup.sh b/ush/module-setup.sh index c94e9e3..6569135 100755 --- a/ush/module-setup.sh +++ b/ush/module-setup.sh @@ -73,6 +73,13 @@ elif [[ $MACHINE_ID = discover* ]]; then export PATH=$PATH:$SPACK_ROOT/bin . $SPACK_ROOT/share/spack/setup-env.sh +elif [[ $MACHINE_ID = noaacloud* ]]; then + # We are on NOAA Cloud + if ( ! eval module help > /dev/null 2>&1 ) ; then + source /apps/lmod/8.5.2/init/bash + fi + module purge + else echo WARNING: UNKNOWN PLATFORM 1>&2 fi