Skip to content

Commit

Permalink
Amended the module-setup.csh.inc script.
Browse files Browse the repository at this point in the history
Recent changes on S4 now require /etc/profile to be sourced.  Also found
that the script was sourcing the wrong lmod location.

Refs: NOAA-EMC#138
  • Loading branch information
DavidHuber-NOAA committed May 17, 2021
1 parent 74a4409 commit 4a7d99d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modulefiles/module-setup.csh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ else if ( { test -d /work } ) then
else if ( { test -d /data/prod } ) then
# We are on SSEC S4
if ( ! { module help >& /dev/null } ) then
source /opt/apps/lmod/init/$__ms_shell
source /opt/apps/lmod/lmod/init/$__ms_shell
endif
source /etc/profile
module purge
else if ( { test -d /gpfs/hps -a -e /etc/SuSE-release } ) then
# We are on NOAA Luna or Surge
Expand Down

0 comments on commit 4a7d99d

Please sign in to comment.