Skip to content

Commit

Permalink
update module-setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBurrows-NCO committed May 8, 2024
1 parent f6ffb03 commit 05a2699
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 05a2699

Please sign in to comment.