-
Notifications
You must be signed in to change notification settings - Fork 259
/
Copy pathufs_wcoss2.intel.lua
55 lines (46 loc) · 1.53 KB
/
ufs_wcoss2.intel.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
help([[
loads UFS Model prerequisites on Cactus and Dogwood
]])
-- First, look for libraries in "prod" space
PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0"
load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver))
intel_ver=os.getenv("intel_ver") or "19.1.3.304"
load(pathJoin("intel", intel_ver))
craype_ver=os.getenv("craype_ver") or "2.7.13"
load(pathJoin("craype", craype_ver))
cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.12"
load(pathJoin("cray-mpich", cray_mpich_ver))
cmake_ver=os.getenv("cmake_ver") or "3.20.2"
load(pathJoin("cmake", cmake_ver))
local ufs_modules = {
{["jasper"] = "2.0.25"},
{["zlib"] = "1.2.11"},
{["libpng"] = "1.6.37"},
{["hdf5-C"] = "1.14.0"},
{["netcdf-C"] = "4.9.2"},
{["pio-C"] = "2.5.10"},
{["esmf-C"] = "8.6.0"},
{["fms"] = "2024.01"},
{["bacio"] = "2.4.1"},
{["crtm"] = "2.4.0"},
{["g2"] = "3.5.1"},
{["g2tmpl"] = "1.13.0"},
{["ip"] = "4.0.0"},
{["sp"] = "2.3.3"},
{["w3emc"] = "2.12.0"},
{["gftl-shared"] = "1.6.1"},
{["mapl-C"] = "2.40.3"},
{["pnetcdf-C"] = "1.12.2"},
{["scotch"] = "7.0.4"},
}
for i = 1, #ufs_modules do
for name, default_version in pairs(ufs_modules[i]) do
local env_version_name = string.gsub(name, "-", "_") .. "_ver"
load(pathJoin(name, os.getenv(env_version_name) or default_version))
end
end
setenv("CC", "cc")
setenv("CXX", "CC")
setenv("FC", "ftn")
setenv("CMAKE_Platform", "wcoss2")
whatis("Description: UFS build environment")