Skip to content

Commit

Permalink
Update machine-setup.sh
Browse files Browse the repository at this point in the history
change "module reset" to "module purge"
  • Loading branch information
HelinWei-NOAA authored Jan 27, 2022
1 parent df7a52f commit b429d75
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sorc/machine-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ if [[ -d /lfs3 ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
target=jet
module reset
module purge
elif [[ -d /scratch1 ]] ; then
# We are on NOAA Hera
if ( ! eval module help > /dev/null 2>&1 ) ; then
echo load the module command 1>&2
source /apps/lmod/lmod/init/$__ms_shell
fi
target=hera
module reset
module purge
MOD_PATH=/scratch2/NCEPDEV/nwprod/NCEPLIBS/modulefiles
elif [[ -d /work ]] ; then
# We are on Orion
Expand All @@ -43,7 +43,7 @@ elif [[ -d /work ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
target=orion
module reset
module purge
MOD_PATH=/apps/contrib/NCEPLIBS/orion/modulefiles
elif [[ -d /gpfs/hps && -e /etc/SuSE-release ]] ; then
# We are on NOAA Luna or Surge
Expand Down Expand Up @@ -86,7 +86,7 @@ elif [[ -L /usrx && "$( readlink /usrx 2> /dev/null )" =~ dell ]] ; then
source /usrx/local/prod/lmod/lmod/init/$__ms_shell
fi
target=wcoss_dell_p3
module reset
module purge

elif [[ -d /lfs/h2 ]] ; then
# We are on NOAA Cactus or Dogwood
Expand All @@ -104,15 +104,15 @@ elif [[ -d /dcom && -d /hwrf ]] ; then
source /usrx/local/Modules/default/init/$__ms_shell
fi
target=wcoss
module reset
module purge
elif [[ -d /glade ]] ; then
# We are on NCAR Yellowstone
if ( ! eval module help > /dev/null 2>&1 ) ; then
echo load the module command 1>&2
. /usr/share/Modules/init/$__ms_shell
fi
target=yellowstone
module reset
module purge
elif [[ -d /lustre && -d /ncrc ]] ; then
# We are on GAEA.
if ( ! eval module help > /dev/null 2>&1 ) ; then
Expand All @@ -125,11 +125,11 @@ elif [[ -d /lustre && -d /ncrc ]] ; then
source /etc/profile
fi
target=gaea
module reset
module purge
elif [[ -d /data/prod ]] ; then
# We are on SSEC S4
target=s4
module reset
module purge
else
echo WARNING: UNKNOWN PLATFORM 1>&2
fi
Expand Down

0 comments on commit b429d75

Please sign in to comment.