Skip to content

Commit

Permalink
Tidy up hercules NOAA-EMC#574
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Nov 9, 2023
1 parent 5e4a738 commit 68e699b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions regression/regression_var.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ elif [[ -d /sw/gaea ]]; then # Gaea
export machine="Gaea"
elif [[ -d /data/prod ]]; then # S4
export machine="S4"
elif [[ -d /work && $(hostname -d) =~ "Orion" ]]; then # Orion
elif [[ -d /work && $(hostname) =~ "Orion" ]]; then # Orion
export machine="Orion"
elif [[ -d /work && $(hostname -d) =~ "Hercules" ]]; then # Hercules
elif [[ -d /work && $(hostname) =~ "hercules" ]]; then # Hercules
export machine="Hercules"
elif [[ -d /lfs/h2 ]]; then # wcoss2
export machine="wcoss2"
Expand Down
2 changes: 1 addition & 1 deletion ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ elif [[ $MACHINE_ID = hera* ]] ; then
elif [[ $MACHINE_ID = hercules* ]] ; then
# We are on Hercules
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /apps/lmod/lmod/init/bash
source /apps/other/lmod/lmod/init/bash
fi
module purge

Expand Down
2 changes: 1 addition & 1 deletion ush/sub_hercules
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ echo "" >>$cfile
echo ". "$(awk '{ print $1, $2, $3, $4, $5, $6, $7, $8, $9 }' $regdir/regression_var.out) >>$cfile
echo "" >>$cfile

echo ". /apps/lmod/lmod/init/sh" >> $cfile
echo ". /apps/other/lmod/lmod/init/sh" >> $cfile
echo "module purge" >> $cfile
echo "module use $modulefiles" >> $cfile
echo "module load gsi_hercules" >> $cfile
Expand Down

0 comments on commit 68e699b

Please sign in to comment.