Skip to content

Commit

Permalink
Remove Cray, Dell, WCOSS1 from module-setup.sh.inc (#943)
Browse files Browse the repository at this point in the history
This file was missed in the initial cleanup.
  • Loading branch information
aerorahul authored Jul 28, 2022
1 parent 1ed89c7 commit e4b01b9
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions modulefiles/module-setup.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,43 +34,14 @@ elif [[ -d /work ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
module purge
elif [[ -d /gpfs/hps && -e /etc/SuSE-release ]] ; then
# We are on NOAA Luna or Surge
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /opt/modules/default/init/$__ms_shell
fi
module purge
module purge
# Workaround until module issues are fixed:
unset _LMFILES_
unset LOADEDMODULES
module use /opt/modulefiles
module use /opt/cray/ari/modulefiles
module use /opt/cray/craype/default/alt-modulefiles
module use /opt/cray/alt-modulefiles
module use /gpfs/hps/nco/ops/nwprod/modulefiles
module use /gpfs/hps/nco/ops/nwprod/lib/modulefiles
module use /usrx/local/prod/modulefiles
elif [[ -d /dcom && -d /hwrf ]] ; then
# We are on NOAA Tide or Gyre
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /usrx/local/Modules/default/init/$__ms_shell
fi
module purge
elif [[ -L /usrx && "$( readlink /usrx 2> /dev/null )" =~ dell ]] ; then
# We are on NOAA Mars or Venus
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /usrx/local/prod/lmod/lmod/init/$__ms_shell
fi
module purge
elif [[ -d /glade ]] ; then
# We are on NCAR Yellowstone
if ( ! eval module help > /dev/null 2>&1 ) ; then
. /usr/share/Modules/init/$__ms_shell
fi
module purge
elif [[ -d /lustre && -d /ncrc ]] ; then
# We are on GAEA.
# We are on GAEA.
if ( ! eval module help > /dev/null 2>&1 ) ; then
# We cannot simply load the module command. The GAEA
# /etc/profile modifies a number of module-related variables
Expand All @@ -83,7 +54,7 @@ elif [[ -d /lustre && -d /ncrc ]] ; then
__ms_source_etc_profile=no
fi
module purge
# clean up after purge
# clean up after purge
unset _LMFILES_
unset _LMFILES_000
unset _LMFILES_001
Expand Down

0 comments on commit e4b01b9

Please sign in to comment.