Skip to content

Commit

Permalink
Merge Gaea modulefiles (#1129)
Browse files Browse the repository at this point in the history
* Simplifying Gaea modulefiles (merging C5 and C6).

* Simplifying modulefiles (one unified Gaea one).

* Getting rid of unnecessary line.

---------

Co-authored-by: Eric James <Eric.James@gaea67.ncrc.gov>
  • Loading branch information
EricJames-NOAA and Eric James authored Feb 4, 2025
1 parent 45c2bae commit 8814875
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 41 deletions.
6 changes: 3 additions & 3 deletions modulefiles/gaeac6.lua → modulefiles/gaea.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
help([[
This module loads libraries required for building and running UPP
on the NOAA RDHPC machine Gaea C6 using Intel-2023.2.0.
on the NOAA RDHPC machine Gaea using Intel-2023.2.0.
]])

whatis([===[Loads libraries needed for building the UPP on Gaea C6 ]===])
whatis([===[Loads libraries needed for building the UPP on Gaea ]===])

prepend_path("MODULEPATH", "/ncrc/proj/epic/spack-stack/c6/spack-stack-1.8.0/envs/ue-intel-2021.10.0/install/modulefiles/Core")

Expand All @@ -25,4 +25,4 @@ setenv("CC","cc")
setenv("CXX","CC")
setenv("FC","ftn")

setenv("CMAKE_Platform","gaeac6.intel")
setenv("CMAKE_Platform","gaea.intel")
28 changes: 0 additions & 28 deletions modulefiles/gaeac5.lua

This file was deleted.

17 changes: 7 additions & 10 deletions tests/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ case $(hostname -f) in
dlogin0[1-9].dogwood.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### dogwood01-9
dlogin10.dogwood.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### dogwood10

gaea5[1-8]) MACHINE_ID=gaeac5 ;; ### gaea51-58
gaea5[1-8].ncrc.gov) MACHINE_ID=gaeac5 ;; ### gaea51-58
gaea5[1-8]) MACHINE_ID=gaea ;; ### gaea51-58
gaea5[1-8].ncrc.gov) MACHINE_ID=gaea ;; ### gaea51-58

gaea6[1-8]) MACHINE_ID=gaeac6 ;; ### gaea61-68
gaea6[1-8].ncrc.gov) MACHINE_ID=gaeac6 ;; ### gaea61-68
gaea6[1-8]) MACHINE_ID=gaea ;; ### gaea61-68
gaea6[1-8].ncrc.gov) MACHINE_ID=gaea ;; ### gaea61-68

hfe0[1-9]) MACHINE_ID=hera ;; ### hera01-09
hfe1[01]) MACHINE_ID=hera ;; ### hera10-11
Expand Down Expand Up @@ -87,12 +87,9 @@ elif [[ -d /work ]]; then
else
MACHINE_ID=orion
fi
elif [[ -d /gpfs/f5 ]]; then
# We are on GAEA-C5.
MACHINE_ID=gaeac5
elif [[ -d /gpfs/f6 ]]; then
# We are on GAEA-C6.
MACHINE_ID=gaeac6
elif [[ -d /gpfs && -d /ncrc ]]; then
# We are on GAEA.
MACHINE_ID=gaea
elif [[ -d /data/prod ]]; then
# We are on SSEC's S4
MACHINE_ID=s4
Expand Down

0 comments on commit 8814875

Please sign in to comment.