Skip to content

Commit 5a3dbab

Browse files
committed
Enable UPP Ursa support for HAFS from BijuThomas-NOAA.
1 parent 6c08971 commit 5a3dbab

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

modulefiles/ursa.lua

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
help([[
2+
Load environment to build UPP on Ursa
3+
]])
4+
5+
prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.9.1/envs/ue-oneapi-2024.2.1/install/modulefiles/Core")
6+
7+
stack_oneapi_ver=os.getenv("stack_oneapi_ver") or "2024.2.1"
8+
load(pathJoin("stack-oneapi", stack_oneapi_ver))
9+
10+
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.13"
11+
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
12+
13+
cmake_ver=os.getenv("cmake_ver") or "3.27.9"
14+
load(pathJoin("cmake", cmake_ver))
15+
16+
local ufs_modules = {
17+
{["jasper"] = "2.0.32"},
18+
{["zlib"] = "1.2.13"},
19+
{["libpng"] = "1.6.37"},
20+
{["hdf5"] = "1.14.3"},
21+
{["netcdf-c"] = "4.9.2"},
22+
{["netcdf-fortran"] = "4.6.1"},
23+
{["parallelio"] = "2.6.2"},
24+
{["bacio"] = "2.4.1"},
25+
{["crtm"] = "2.4.0.1"},
26+
{["g2"] = "3.5.1"},
27+
{["g2tmpl"] = "1.13.0"},
28+
{["ip"] = "5.1.0"},
29+
{["sp"] = "2.5.0"},
30+
{["w3emc"] = "2.10.0"},
31+
{["nemsio"] = "2.5.4"},
32+
{["sigio"] = "2.3.3"},
33+
{["wrf-io"] = "1.2.0"},
34+
}
35+
36+
for i = 1, #ufs_modules do
37+
for name, default_version in pairs(ufs_modules[i]) do
38+
local env_version_name = string.gsub(name, "-", "_") .. "_ver"
39+
load(pathJoin(name, os.getenv(env_version_name) or default_version))
40+
end
41+
end
42+
43+
setenv("CC","mpiicc")
44+
setenv("CXX","mpiicpc")
45+
setenv("FC","mpiifort")
46+
47+
whatis("Description: UPP build environment")
48+
whatis("Description: UPP build environment common libraries")

tests/detect_machine.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ case $(hostname -f) in
3131
hfe1[01]) MACHINE_ID=hera ;; ### hera10-11
3232
hecflow01) MACHINE_ID=hera ;; ### heraecflow01
3333

34+
ufe0[1-4]) MACHINE_ID=ursa ;; ### ofe01-02
35+
3436
s4-submit.ssec.wisc.edu) MACHINE_ID=s4 ;; ### s4
3537

3638
fe[1-8]) MACHINE_ID=jet ;; ### jet1-8
@@ -78,6 +80,9 @@ elif [[ -d /mnt/lfs1 ]]; then
7880
elif [[ -d /scratch1 ]]; then
7981
# We are on NOAA Hera
8082
MACHINE_ID=hera
83+
elif [[ -d /scratch3 ]]; then
84+
# We are on NOAA Ursa
85+
MACHINE_ID=ursa
8186
elif [[ -d /work ]]; then
8287
# We are on MSU Orion or Hercules, check the home mount
8388
mount=$(findmnt -n -o SOURCE /home)

0 commit comments

Comments
 (0)