Skip to content

Commit aed90df

Browse files
Porting hafs_gsi.fd to Ursa
1 parent d63b3d2 commit aed90df

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

modulefiles/gsi_ursa.intel.lua

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
help([[
2+
]])
3+
4+
prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.9.1/envs/ue-oneapi-2024.2.1/install/modulefiles/Core")
5+
6+
--local python_ver=os.getenv("python_ver") or "3.10.13"
7+
local stack_oneapi_ver=os.getenv("stack_oneapi_ver") or "2024.2.1"
8+
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.13"
9+
local cmake_ver=os.getenv("cmake_ver") or "3.27.9"
10+
local prod_util_ver=os.getenv("prod_util_ver") or "2.1.1"
11+
12+
load(pathJoin("stack-oneapi", stack_oneapi_ver))
13+
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
14+
--load(pathJoin("python", python_ver))
15+
load(pathJoin("cmake", cmake_ver))
16+
load(pathJoin("prod_util", prod_util_ver))
17+
18+
19+
local netcdf_c_ver=os.getenv("netcdf_c_ver") or "4.9.2"
20+
local netcdf_fortran_ver=os.getenv("netcdf_fortran_ver") or "4.6.1"
21+
22+
local bufr_ver=os.getenv("bufr_ver") or "12.1.0"
23+
local bacio_ver=os.getenv("bacio_ver") or "2.4.1"
24+
local w3emc_ver=os.getenv("w3emc_ver") or "2.10.0"
25+
local sp_ver=os.getenv("sp_ver") or "2.5.0"
26+
local ip_ver=os.getenv("ip_ver") or "5.1.0"
27+
local sigio_ver=os.getenv("sigio_ver") or "2.3.3"
28+
local sfcio_ver=os.getenv("sfcio_ver") or "1.4.2"
29+
local nemsio_ver=os.getenv("nemsio_ver") or "2.5.4"
30+
local wrf_io_ver=os.getenv("wrf_io_ver") or "1.2.0"
31+
local ncio_ver=os.getenv("ncio_ver") or "1.1.2"
32+
local crtm_ver=os.getenv("crtm_ver") or "2.4.0.1"
33+
local ncdiag_ver=os.getenv("ncdiag_ver") or "1.1.2"
34+
35+
load(pathJoin("netcdf-c", netcdf_c_ver))
36+
load(pathJoin("netcdf-fortran", netcdf_fortran_ver))
37+
38+
load(pathJoin("bufr", bufr_ver))
39+
load(pathJoin("bacio", bacio_ver))
40+
load(pathJoin("w3emc", w3emc_ver))
41+
load(pathJoin("sp", sp_ver))
42+
load(pathJoin("ip", ip_ver))
43+
load(pathJoin("sigio", sigio_ver))
44+
load(pathJoin("sfcio", sfcio_ver))
45+
load(pathJoin("nemsio", nemsio_ver))
46+
load(pathJoin("wrf-io", wrf_io_ver))
47+
load(pathJoin("ncio", ncio_ver))
48+
load(pathJoin("crtm", crtm_ver))
49+
load(pathJoin("gsi-ncdiag",ncdiag_ver))
50+
51+
--pushenv("CFLAGS", "-axSSE4.2,AVX,CORE-AVX2")
52+
--pushenv("FFLAGS", "-axSSE4.2,AVX,CORE-AVX2")
53+
54+
setenv("CMAKE_C_COMPILER", "mpiicc")
55+
setenv("CMAKE_CXX_COMPILER", "mpiicpc")
56+
setenv("CMAKE_Fortran_COMPILER", "mpiifort")
57+
58+
pushenv("GSI_BINARY_SOURCE_DIR", "/gpfs/f6/hurr1/proj-shared/noscrub/gsi_fix/20240208")
59+
60+
whatis("Description: GSI environment on Ursa with Intel Compilers")

ush/detect_machine.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ case $(hostname -f) in
2828
hfe1[0-2]) MACHINE_ID=hera ;; ### hera10-12
2929
hecflow01) MACHINE_ID=hera ;; ### heraecflow01
3030

31+
ofe0[1-2]) MACHINE_ID=ursa ;; ### ofe01-02
3132
s4-submit.ssec.wisc.edu) MACHINE_ID=s4 ;; ### s4
3233

3334
fe[1-8]) MACHINE_ID=jet ;; ### jet01-8
@@ -75,6 +76,9 @@ elif [[ -d /mnt/lfs5 ]]; then
7576
elif [[ -d /scratch1 ]]; then
7677
# We are on NOAA Hera
7778
MACHINE_ID=hera
79+
elif [[ -d /tds_scratch2/SYSADMIN/pilot-users ]]; then
80+
# We are on NOAA Ursa
81+
MACHINE_ID=ursa
7882
elif [[ -d /work ]]; then
7983
# We are on MSU Orion or Hercules
8084
mount=$(findmnt -n -o SOURCE /home)

0 commit comments

Comments
 (0)