Skip to content

Commit 9b26d36

Browse files
Merge branch 'ufs-community:develop' into fix/derecho
2 parents 913f2e6 + 990ca94 commit 9b26d36

File tree

102 files changed

+2722
-2822
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+2722
-2822
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "UFSATM"]
22
path = UFSATM
3-
url = https://github.com/NOAA-EMC/fv3atm
3+
url = https://github.com/NOAA-EMC/ufsatm
44
branch = develop
55
[submodule "WW3"]
66
path = WW3
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
help([[
2+
Load environment to compile ufs-weather-model in a container using Intel
3+
]])
4+
5+
prepend_path("MODULEPATH", "/opt/spack-stack/spack-stack-1.9.2/envs/unified-env/install/modulefiles/Core")
6+
prepend_path("MODULEPATH", "/opt/spack-stack/spack-stack-1.9.2/envs/unified-env/install/modulefiles/intel-oneapi-mpi/2021.13-argr3sd/gcc/11.4.0")
7+
8+
stack_oneapi_ver=os.getenv("stack_oneapi_ver") or "2024.2.0"
9+
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.13"
10+
11+
load(pathJoin("stack-oneapi", stack_oneapi_ver))
12+
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
13+
14+
cmake_ver=os.getenv("cmake_ver") or "3.27.9"
15+
load(pathJoin("cmake", cmake_ver))
16+
17+
load("ufs_common")
18+
19+
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1"
20+
load(pathJoin("nccmp", nccmp_ver))
21+
22+
setenv("CC", "mpiicx")
23+
setenv("CXX", "mpiicpx")
24+
setenv("FC", "mpiifort")
25+
setenv("I_MPI_CC", "icx")
26+
setenv("I_MPI_CXX", "icpx")
27+
setenv("I_MPI_F90", "ifort")
28+
29+
setenv("CMAKE_Platform", "container.intel")
30+
31+
whatis("Description: UFS build environment")

tests-dev/test_cases/tests/2020_CAPE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export SMONTH=07
2828
export SDAY=23
2929
export SHOUR=00
3030
export RESTART_INTERVAL=0
31-
export CDMBWD=${CDMBWD_c48}
31+
export CDMBGWD=${CDMBGWD_c48}
3232
export OUTPUT_GRID='gaussian_grid'
3333
export NSTF_NAME='2,0,0,0,0'
3434
export WRITE_DOPOST=.true.

tests/bl_date.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export BL_DATE=20250828
1+
export BL_DATE=20250915

tests/ci/repo_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ urls[base]='https://github.com/ufs-community/ufs-weather-model'
3131
branches[base]='develop'
3232
pathes[base]=''
3333

34-
urls[ufsatm]='https://github.com/NOAA-EMC/fv3atm'
34+
urls[ufsatm]='https://github.com/NOAA-EMC/ufsatm'
3535
branches[ufsatm]='develop'
3636
pathes[ufsatm]='UFSATM'
3737

tests/compile.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ case ${MACHINE_ID} in
6666
fi
6767
if [[ ${MACHINE_ID} == gaeac6 ]]; then
6868
module reset
69+
elif [[ ${MACHINE_ID} == container ]]; then
70+
source /usr/lmod/lmod/init/bash
71+
module purge
6972
elif [[ ${MACHINE_ID} == hercules ]]; then
7073
module purge
7174
fi

tests/default_vars.sh

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -736,14 +736,14 @@ export_gfs_physics ()
736736
export DO_UGWP_V0_NST_ONLY=.false.
737737

738738
# GWG resolution dependent settings
739-
export CDMBWD_c48='0.071,2.1,1.0,1.0'
740-
export CDMBWD_c96='0.14,1.8,1.0,1.0'
741-
export CDMBWD_c192='0.23,1.5,1.0,1.0'
742-
export CDMBWD_c384='1.1,0.72,1.0,1.0'
743-
export CDMBWD_c768='4.0,0.15,1.0,1.0'
739+
export CDMBGWD_c48='0.071,2.1,1.0,1.0'
740+
export CDMBGWD_c96='0.14,1.8,1.0,1.0'
741+
export CDMBGWD_c192='0.23,1.5,1.0,1.0'
742+
export CDMBGWD_c384='1.1,0.72,1.0,1.0'
743+
export CDMBGWD_c768='4.0,0.15,1.0,1.0'
744744

745745
# set default
746-
export CDMBWD=${CDMBWD_c96}
746+
export CDMBGWD=${CDMBGWD_c96}
747747

748748
# PBL
749749
export ISATMEDMF=1
@@ -1088,14 +1088,14 @@ export KNOB_UGWP_TAUAMP=3.0e-3
10881088
export DO_UGWP_V0_NST_ONLY=.false.
10891089

10901090
# resolution dependent settings
1091-
export CDMBWD_c48='0.071,2.1,1.0,1.0'
1092-
export CDMBWD_c96='0.14,1.8,1.0,1.0'
1093-
export CDMBWD_c192='0.23,1.5,1.0,1.0'
1094-
export CDMBWD_c384='1.1,0.72,1.0,1.0'
1095-
export CDMBWD_c768='4.0,0.15,1.0,1.0'
1091+
export CDMBGWD_c48='0.071,2.1,1.0,1.0'
1092+
export CDMBGWD_c96='0.14,1.8,1.0,1.0'
1093+
export CDMBGWD_c192='0.23,1.5,1.0,1.0'
1094+
export CDMBGWD_c384='1.1,0.72,1.0,1.0'
1095+
export CDMBGWD_c768='4.0,0.15,1.0,1.0'
10961096

10971097
# set default
1098-
export CDMBWD=${CDMBWD_c96}
1098+
export CDMBGWD=${CDMBGWD_c96}
10991099

11001100
if [[ ${default_dt_atmos} = 1 ]]; then
11011101
export DT_INNER=${DT_INNER_c96}
@@ -1429,6 +1429,7 @@ export_tiled() {
14291429
export FNVMXC="'${ATMRES}.vegetation_greenness.tileX.nc'"
14301430
export FNSLPC="'${ATMRES}.slope_type.tileX.nc'"
14311431
export FNABSC="'${ATMRES}.maximum_snow_albedo.tileX.nc'"
1432+
export LSM=2
14321433
export LANDICE=".false."
14331434
}
14341435

@@ -1845,6 +1846,7 @@ export FHZERO=6
18451846
export IALB=2
18461847
export IEMS=2
18471848
export LSM=2
1849+
export LANDICE=.false.
18481850
export IOPT_DVEG=4
18491851
export IOPT_CRS=2
18501852
export IOPT_RAD=3
@@ -2172,15 +2174,16 @@ export IOPT_RAD=1
21722174
export IOPT_ALB=2
21732175
export IOPT_STC=1
21742176
export LSM=1
2177+
export LANDICE=.true.
21752178
export DO_GSL_DRAG_LS_BL=.true.
21762179
export DO_GSL_DRAG_SS=.true.
21772180
export DO_GSL_DRAG_TOFD=.true.
21782181
export IMP_PHYSICS=11
21792182
export IAER=111
21802183
export CNVGWD=.false.
21812184
export LTAEROSOL=.false.
2185+
export CDMBGWD=1.0,1.0,1.0,1.0
21822186
export MRAEROSOL=.false.
2183-
export CDMBWD=1.0,1.0,1.0,1.0
21842187
export LHEATSTRG=.false.
21852188
export LRADAR=.true.
21862189
export ICPLOCN2ATM=0
@@ -2437,7 +2440,7 @@ export RANDOM_CLDS=.false.
24372440
export CNVCLD=.false.
24382441
export IMFSHALCNV=-1
24392442
export IMFDEEPCNV=-1
2440-
export CDMBWD='3.5,1.0'
2443+
export CDMBGWD='3.5,1.0'
24412444
export DO_SPPT=.false.
24422445
export DO_SHUM=.false.
24432446
export DO_SKEB=.false.
@@ -2536,4 +2539,5 @@ export_rrfs_v1()
25362539
export LHEATSTRG=.false.
25372540
export LSM=2
25382541
export LSOIL_LSM=4
2542+
export LANDICE=.false.
25392543
}

tests/detect_machine.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
#
99
# Thank you for your contribution
1010

11+
# Overwrite auto-detect if in container
12+
if [[ -d /opt/spack-stack && -v SINGULARITY_CONTAINER ]]; then
13+
# We are in a container
14+
MACHINE_ID=container
15+
fi
16+
1117
# If the MACHINE_ID variable is set, skip this script.
1218
[[ -n ${MACHINE_ID:-} ]] && return
1319

@@ -70,6 +76,12 @@ fi
7076
# Overwrite auto-detect with MACHINE if set
7177
MACHINE_ID=${MACHINE:-${MACHINE_ID}}
7278

79+
# Overwrite auto-detect if in container
80+
if [[ -d /opt/spack-stack && -v SINGULARITY_CONTAINER ]]; then
81+
# We are in a container
82+
MACHINE_ID=container
83+
fi
84+
7385
# If MACHINE_ID is no longer UNKNNOWN, return it
7486
if [[ "${MACHINE_ID}" != "UNKNOWN" ]]; then
7587
return
@@ -112,6 +124,9 @@ elif [[ -d /gpfs/f6 && -d /ncrc ]]; then
112124
elif [[ -d /data/prod ]]; then
113125
# We are on SSEC's S4
114126
MACHINE_ID=s4
127+
elif [[ -d /opt/spack-stack && -v SINGULARITY_CONTAINER ]]; then
128+
# We are in a container
129+
MACHINE_ID=container
115130
else
116131
echo WARNING: UNKNOWN PLATFORM 1>&2
117132
fi

0 commit comments

Comments
 (0)