Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining PRs for streamlining testing and merging #2430

Closed
wants to merge 84 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
102df72
add toggle for ESMF/traditional threading for UFS
aerorahul Feb 6, 2024
1d71b23
choose the appropriate template based on threading choice for ufswm
aerorahul Feb 7, 2024
9a96af9
update thread counts during job placement
aerorahul Feb 7, 2024
e8f1877
update submodule pointer to ufs-weather-model
aerorahul Feb 7, 2024
8242055
Updating/debugging gfs_utils.
HenryRWinterbottom Feb 27, 2024
febabd9
Updated submodule configuration
HenryRWinterbottom Feb 27, 2024
5a4b36b
Removed ufs_utils module; will be updated with test branch.
HenryRWinterbottom Feb 28, 2024
c779301
Fixed broken submodule load; add ufs_utils.fd back to repo with corre…
HenryRWinterbottom Feb 28, 2024
d38c983
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 4, 2024
b7efb5f
Removed submodule.
HenryRWinterbottom Mar 4, 2024
147c681
Updates for UFS_UTILS.
HenryRWinterbottom Mar 4, 2024
b7580c2
Removed submodule.
HenryRWinterbottom Mar 4, 2024
784d3bc
Rocky 8 updates.
HenryRWinterbottom Mar 4, 2024
1648dca
Removed submodule.
HenryRWinterbottom Mar 4, 2024
1c483d3
Merge branch 'develop' into feature/ufs-threading
aerorahul Mar 5, 2024
2fe0bdd
Removed submodule.
HenryRWinterbottom Mar 6, 2024
a9a83b1
Removed incorrect submodule.
HenryRWinterbottom Mar 6, 2024
7c20ea0
Updates for GSI ENKF.
HenryRWinterbottom Mar 6, 2024
e0add00
Updates for GSI ENKF.
HenryRWinterbottom Mar 6, 2024
9e6efaf
Removed hanging directory.
HenryRWinterbottom Mar 6, 2024
7553e84
Removed submodule.
HenryRWinterbottom Mar 6, 2024
25e2483
Rocky-8 updates.
HenryRWinterbottom Mar 6, 2024
fbe1025
Merge branch 'develop' into feature/ufs-threading
aerorahul Mar 7, 2024
e00a75a
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 7, 2024
f21738b
fix shellnorm errors
aerorahul Mar 7, 2024
33d3ecc
update config.resources in the repo with the one used in test
aerorahul Mar 7, 2024
85a8a88
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 11, 2024
64e05c4
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 11, 2024
e225acd
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 12, 2024
f6dc430
Turned off GSI verification for RDHPCS Hera.
HenryRWinterbottom Mar 12, 2024
8171211
Merge branch 'feature/gwdev_issue_2329' of https://github.com/HenryWi…
HenryRWinterbottom Mar 12, 2024
e7e2b9a
replace HOMEgfs/parm with PARMgfs to be consistent w/ gw
aerorahul Mar 13, 2024
e60ae21
fix mixed-indent in .gitmodules
aerorahul Mar 13, 2024
463a75c
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 13, 2024
33a3553
Trying again to update hashes.
HenryRWinterbottom Mar 13, 2024
18667e3
Update UPP hash to Rocky8 spack-stack
HenryRWinterbottom Mar 13, 2024
cd90a34
Rocky-8 updates.
HenryRWinterbottom Mar 13, 2024
8ed5ad3
Removed submodule.
HenryRWinterbottom Mar 14, 2024
95b2346
Updated hash for gsi_monitor.fd.
HenryRWinterbottom Mar 14, 2024
510ad81
UFSWM updates.
HenryRWinterbottom Mar 19, 2024
c3cb611
Updates for prepobs and Fit2Obs.
HenryRWinterbottom Mar 19, 2024
3c4ab44
Merge remote-tracking branch 'emc/develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 20, 2024
8d4243f
Removed broken submodule.
HenryRWinterbottom Mar 20, 2024
4dec833
Adding submodule sorc/verif-global.fd.
HenryRWinterbottom Mar 20, 2024
bd57aad
Updated to Rocky-8 stack.
HenryRWinterbottom Mar 20, 2024
53df6af
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 20, 2024
613418b
Modify APP based on RUN
WalterKolczynski-NOAA Mar 20, 2024
eb9bef1
Correct APP substitution for enkf
WalterKolczynski-NOAA Mar 20, 2024
e5dd245
Turn on extglob for APP adjustment
WalterKolczynski-NOAA Mar 20, 2024
6aedab2
Add S2SWA as valid app option
WalterKolczynski-NOAA Mar 20, 2024
8b9fc99
Merge branch 'develop' into feature/ufs-threading
aerorahul Mar 21, 2024
65830b8
update ufs-weather-model hash to 126db7a5 and in the authoritative repo
aerorahul Mar 21, 2024
c558151
add a newline at the end of diag_table_aod
aerorahul Mar 21, 2024
094c7da
increase memory for offline upp on wcoss2 for C768
aerorahul Mar 21, 2024
9d8060e
Update sorc/link_workflow.sh
aerorahul Mar 21, 2024
a33ae0f
Fix earc for which nmem isn't a multiple of 10.
DavidHuber-NOAA Mar 21, 2024
ddd3ea0
Update parm/config/gfs/config.resources
aerorahul Mar 21, 2024
db3bab4
Update .gitmodules
HenryRWinterbottom Mar 21, 2024
695f799
Update parm/config/gfs/config.base
HenryRWinterbottom Mar 21, 2024
668ede0
replace reset w/ purge for orion
aerorahul Mar 21, 2024
8c73dfb
Merge branch 'develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 21, 2024
608166c
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2329
HenryRWinterbottom Mar 22, 2024
36e667b
Removed submodule fork paths.
HenryRWinterbottom Mar 22, 2024
bd3201c
Removed incorrect submodule path.
HenryRWinterbottom Mar 22, 2024
2e01697
Updated submodules; pointing to tip of UPP until Rocky-8 issues are r…
HenryRWinterbottom Mar 22, 2024
a6a1924
Corrected UPP paths.
HenryRWinterbottom Mar 22, 2024
4ee2192
Updated hashes.
HenryRWinterbottom Mar 22, 2024
9ebdfd6
CI/CD module load update.
HenryRWinterbottom Mar 22, 2024
3f0062b
Merge branch 'develop' into feature/ufs-threading
aerorahul Mar 22, 2024
c08dc7b
update gsi_enkf submodule pointer to develop
aerorahul Mar 23, 2024
d2504e3
Merge branch 'develop' into feature/gwdev_issue_2329
aerorahul Mar 23, 2024
10e84b6
update gitmodules to add upp and keep the rest same
aerorahul Mar 23, 2024
b5bf197
make reviewer updates
aerorahul Mar 23, 2024
3bacdb1
Merge branch 'feature/gwdev_issue_2329' into feature/combine_prs
aerorahul Mar 23, 2024
d9a7608
Merge branch 'feature/flex_app' into feature/combine_prs
aerorahul Mar 23, 2024
268b57e
Merge branch 'feature/ufs-threading' into feature/combine_prs
aerorahul Mar 23, 2024
6218b3d
Merge branch 'hotfix/earc' into feature/combine_prs
aerorahul Mar 23, 2024
fe57ef5
update upp submodule to develop
aerorahul Mar 23, 2024
243f20b
update upp version to develop and set fit2obs_ver in module_base.hera
aerorahul Mar 24, 2024
fe5b0ce
straighten out the comment for fit2obs modulefile on hera
aerorahul Mar 24, 2024
faadb53
pip is not found in load_ufsda_modules.sh. Remove pip list from there
aerorahul Mar 24, 2024
9556d4a
update path to iodaconv and python version
aerorahul Mar 24, 2024
6a9f03d
Update fit2obs_ver in run.spack.ver
KateFriedman-NOAA Mar 25, 2024
79168db
Update Fit2Obs path in module_base.hera.lua
KateFriedman-NOAA Mar 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@
[submodule "sorc/gsi_monitor.fd"]
path = sorc/gsi_monitor.fd
url = https://github.com/NOAA-EMC/GSI-Monitor.git
[submodule "sorc/upp.fd"]
path = sorc/upp.fd
url = https://github.com/NOAA-EMC/UPP
2 changes: 1 addition & 1 deletion jobs/rocoto/prepsnowobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export jobid="${job}.$$"
###############################################################
# setup python path for workflow utilities and tasks
wxflowPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/wxflow/src"
gdasappPATH="${HOMEgfs}/sorc/gdas.cd/iodaconv/src:${HOMEgfs}/sorc/gdas.cd/build/lib/python3.7"
gdasappPATH="${HOMEgfs}/sorc/gdas.cd/bundle/iodaconv/src:${HOMEgfs}/sorc/gdas.cd/build/lib/python3.10"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${wxflowPATH}:${gdasappPATH}"
export PYTHONPATH

Expand Down
2 changes: 1 addition & 1 deletion modulefiles/module_base.hera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ setenv("WGRIB2","wgrib2")
setenv("UTILROOT",(os.getenv("prod_util_ROOT") or "None"))

--prepend_path("MODULEPATH", pathJoin("/scratch1/NCEPDEV/global/glopara/git/prepobs/v" .. (os.getenv("prepobs_run_ver") or "None"), "modulefiles"))
prepend_path("MODULEPATH", pathJoin("/scratch1/NCEPDEV/global/glopara/git/prepobs/feature-GFSv17_com_reorg_log_update/modulefiles"))
prepend_path("MODULEPATH", pathJoin("/scratch1/NCEPDEV/global/glopara/git/prepobs/dev-gfsv17/modulefiles"))
load(pathJoin("prepobs", (os.getenv("prepobs_run_ver") or "None")))

prepend_path("MODULEPATH", pathJoin("/scratch1/NCEPDEV/global/glopara/git/Fit2Obs/v" .. (os.getenv("fit2obs_ver") or "None"), "modulefiles"))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/module_gwci.hera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ help([[
Load environment to run GFS workflow setup scripts on Hera
]])

prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev/install/modulefiles/Core")
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/modulefiles/Core")

load(pathJoin("stack-intel", os.getenv("2021.5.0")))
load(pathJoin("stack-intel-oneapi-mpi", os.getenv("2021.5.1")))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/module_gwsetup.hera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load environment to run GFS workflow setup scripts on Hera

load(pathJoin("rocoto"))

prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev/install/modulefiles/Core")
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/modulefiles/Core")

local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0"
local python_ver=os.getenv("python_ver") or "3.11.6"
Expand Down
2 changes: 2 additions & 0 deletions parm/config/gefs/config.fcst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

echo "BEGIN: config.fcst"

export USE_ESMF_THREADING="YES" # Toggle to use ESMF-managed threading or traditional threading in UFSWM

# Turn off waves if not used for this CDUMP
case ${WAVE_CDUMP} in
both | "${CDUMP/enkf}" ) ;; # Don't change
Expand Down
18 changes: 16 additions & 2 deletions parm/config/gefs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,20 @@ case ${step} in
ntasks_fv3=${ntasks_fv3_gfs}
ntasks_quilt=${ntasks_quilt_gfs}
nthreads_fv3=${nthreads_fv3_gfs}
nthreads_ufs=${nthreads_ufs_gfs}
fi

# Determine if using ESMF-managed threading or traditional threading
# If using traditional threading, set them to 1
if [[ "${USE_ESMF_THREADING:-}" == "YES" ]]; then
export UFS_THREADS=1
else # traditional threading
export UFS_THREADS=${nthreads_ufs:-1}
nthreads_fv3=1
nthreads_mediator=1
[[ "${DO_WAVE}" == "YES" ]] && nthreads_ww3=1
[[ "${DO_OCN}" == "YES" ]] && nthreads_mom6=1
[[ "${DO_ICE}" == "YES" ]] && nthreads_cice6=1
fi

# PETS for the atmosphere dycore
Expand Down Expand Up @@ -177,11 +191,11 @@ case ${step} in

if [[ "${_CDUMP}" =~ "gfs" ]]; then
declare -x "npe_${step}_gfs"="${NTASKS_TOT}"
declare -x "nth_${step}_gfs"=1 # ESMF handles threading for the UFS-weather-model
declare -x "nth_${step}_gfs"="${UFS_THREADS}"
declare -x "npe_node_${step}_gfs"="${npe_node_max}"
else
declare -x "npe_${step}"="${NTASKS_TOT}"
declare -x "nth_${step}"=1 # ESMF handles threading for the UFS-weather-model
declare -x "nth_${step}"="${UFS_THREADS}"
declare -x "npe_node_${step}"="${npe_node_max}"
fi

Expand Down
31 changes: 24 additions & 7 deletions parm/config/gefs/config.ufs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ case "${fv3_res}" in
export layout_y_gfs=1
export nthreads_fv3=1
export nthreads_fv3_gfs=1
export nthreads_ufs=1
export nthreads_ufs_gfs=1
export cdmbgwd="0.071,2.1,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export cdmbgwd_gsl="40.0,1.77,1.0,1.0" # settings for GSL drag suite
export knob_ugwp_tauamp=6.0e-3 # setting for UGWPv1 non-stationary GWD
Expand All @@ -94,6 +96,8 @@ case "${fv3_res}" in
export layout_y_gfs=2
export nthreads_fv3=1
export nthreads_fv3_gfs=1
export nthreads_ufs=1
export nthreads_ufs_gfs=1
export cdmbgwd="0.14,1.8,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export cdmbgwd_gsl="20.0,2.5,1.0,1.0" # settings for GSL drag suite
export knob_ugwp_tauamp=3.0e-3 # setting for UGWPv1 non-stationary GWD
Expand All @@ -110,6 +114,8 @@ case "${fv3_res}" in
export layout_y_gfs=6
export nthreads_fv3=1
export nthreads_fv3_gfs=2
export nthreads_ufs=1
export nthreads_ufs_gfs=2
export cdmbgwd="0.23,1.5,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export cdmbgwd_gsl="10.0,3.5,1.0,1.0" # settings for GSL drag suite
export knob_ugwp_tauamp=1.5e-3 # setting for UGWPv1 non-stationary GWD
Expand All @@ -126,6 +132,8 @@ case "${fv3_res}" in
export layout_y_gfs=8
export nthreads_fv3=1
export nthreads_fv3_gfs=2
export nthreads_ufs=1
export nthreads_ufs_gfs=2
export cdmbgwd="1.1,0.72,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export cdmbgwd_gsl="5.0,5.0,1.0,1.0" # settings for GSL drag suite
export knob_ugwp_tauamp=0.8e-3 # setting for UGWPv1 non-stationary GWD
Expand All @@ -142,6 +150,8 @@ case "${fv3_res}" in
export layout_y_gfs=16
export nthreads_fv3=4
export nthreads_fv3_gfs=4
export nthreads_ufs=4
export nthreads_ufs_gfs=4
export cdmbgwd="4.0,0.15,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export cdmbgwd_gsl="2.5,7.5,1.0,1.0" # settings for GSL drag suite
export knob_ugwp_tauamp=0.5e-3 # setting for UGWPv1 non-stationary GWD
Expand All @@ -158,6 +168,8 @@ case "${fv3_res}" in
export layout_y_gfs=16
export nthreads_fv3=4
export nthreads_fv3_gfs=4
export nthreads_ufs=4
export nthreads_ufs_gfs=4
export cdmbgwd="4.0,0.10,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export cdmbgwd_gsl="1.67,8.8,1.0,1.0" # settings for GSL drag suite
export knob_ugwp_tauamp=0.35e-3 # setting for UGWPv1 non-stationary GWD
Expand All @@ -174,6 +186,8 @@ case "${fv3_res}" in
export layout_y_gfs=32
export nthreads_fv3=4
export nthreads_fv3_gfs=4
export nthreads_ufs=4
export nthreads_ufs_gfs=4
export cdmbgwd="4.0,0.05,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export cdmbgwd_gsl="0.625,14.1,1.0,1.0" # settings for GSL drag suite
export knob_ugwp_tauamp=0.13e-3 # setting for UGWPv1 non-stationary GWD
Expand Down Expand Up @@ -433,27 +447,30 @@ fi

# Set the name of the UFS (previously nems) configure template to use
# Default ufs.configure templates for supported model configurations
if [[ "${USE_ESMF_THREADING:-}" == "YES" ]]; then
tmpl_suffix="_esmf"
fi
case "${model_list}" in
atm)
default_template="${PARMgfs}/ufs/ufs.configure.atm.IN"
default_template="${PARMgfs}/ufs/ufs.configure.atm${tmpl_suffix:-}.IN"
;;
atm.aero)
default_template="${PARMgfs}/ufs/ufs.configure.atmaero.IN"
default_template="${PARMgfs}/ufs/ufs.configure.atmaero${tmpl_suffix:-}.IN"
;;
atm.wave)
default_template="${PARMgfs}/ufs/ufs.configure.leapfrog_atm_wav.IN"
default_template="${PARMgfs}/ufs/ufs.configure.leapfrog_atm_wav${tmpl_suffix:-}.IN"
;;
atm.ocean.ice)
default_template="${PARMgfs}/ufs/ufs.configure.s2s_esmf.IN"
default_template="${PARMgfs}/ufs/ufs.configure.s2s${tmpl_suffix:-}.IN"
;;
atm.ocean.ice.aero)
default_template="${PARMgfs}/ufs/ufs.configure.s2sa_esmf.IN"
default_template="${PARMgfs}/ufs/ufs.configure.s2sa${tmpl_suffix:-}.IN"
;;
atm.ocean.ice.wave)
default_template="${PARMgfs}/ufs/ufs.configure.s2sw_esmf.IN"
default_template="${PARMgfs}/ufs/ufs.configure.s2sw${tmpl_suffix:-}.IN"
;;
atm.ocean.ice.wave.aero)
default_template="${PARMgfs}/ufs/ufs.configure.s2swa_esmf.IN"
default_template="${PARMgfs}/ufs/ufs.configure.s2swa${tmpl_suffix:-}.IN"
;;
*)
echo "FATAL ERROR: Unsupported UFSWM configuration for ${model_list}"
Expand Down
20 changes: 19 additions & 1 deletion parm/config/gfs/config.base
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ export DBNROOT=${DBNROOT:-${UTILROOT:-}/fakedbn}
# APP settings
export APP=@APP@

shopt -s extglob
# Adjust APP based on RUN
case "${RUN}" in
gfs) # Turn off aerosols
APP="${APP/%A}"
;;
enkf*) # Turn off aerosols and waves
APP="${APP/%+([WA])}"
;;
*) # Keep app unchanged
;;
esac
shopt -u extglob

# Defaults:
export DO_ATM="YES"
export DO_COUPLED="NO"
Expand All @@ -162,6 +176,7 @@ export CASE="@CASECTL@"
export CASE_ENS="@CASEENS@"
export OCNRES="@OCNRES@"
export ICERES="${OCNRES}"

# These are the currently recommended grid-combinations
case "${CASE}" in
"C48")
Expand Down Expand Up @@ -383,11 +398,14 @@ export FITSARC="YES"
export FHMAX_FITS=132
[[ "${FHMAX_FITS}" -gt "${FHMAX_GFS}" ]] && export FHMAX_FITS=${FHMAX_GFS}

# The monitor jobs are not yet supported for JEDIATMVAR
# The monitor jobs are not yet supported for JEDIATMVAR.
if [[ ${DO_JEDIATMVAR} = "YES" ]]; then
export DO_VERFOZN="NO" # Ozone data assimilation monitoring
export DO_VERFRAD="NO" # Radiance data assimilation monitoring
export DO_VMINMON="NO" # GSI minimization monitoring
# The minimization monitor is not yet supported on RDHPCS Hera for Rocky-8
elif [[ ${machine} = "HERA" ]]; then
export DO_VMINMON="NO" # GSI minimization monitoring
fi

echo "END: config.base"
6 changes: 0 additions & 6 deletions parm/config/gfs/config.efcs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@

echo "BEGIN: config.efcs"

# Turn off components in ensemble
# export DO_AERO="NO"
# export DO_OCN="NO"
# export DO_ICE="NO"
export DO_WAVE="NO"

export CASE="${CASE_ENS}"

# Source model specific information that is resolution dependent
Expand Down
2 changes: 2 additions & 0 deletions parm/config/gfs/config.fcst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

echo "BEGIN: config.fcst"

export USE_ESMF_THREADING="YES" # Toggle to use ESMF-managed threading or traditional threading in UFSWM

# Turn off waves if not used for this CDUMP
case ${WAVE_CDUMP} in
both | "${CDUMP/enkf}" ) ;; # Don't change
Expand Down
27 changes: 23 additions & 4 deletions parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,20 @@ case ${step} in
ntasks_fv3=${ntasks_fv3_gfs}
ntasks_quilt=${ntasks_quilt_gfs}
nthreads_fv3=${nthreads_fv3_gfs}
nthreads_ufs=${nthreads_ufs_gfs}
fi

# Determine if using ESMF-managed threading or traditional threading
# If using traditional threading, set them to 1
if [[ "${USE_ESMF_THREADING:-}" == "YES" ]]; then
export UFS_THREADS=1
else # traditional threading
export UFS_THREADS=${nthreads_ufs:-1}
nthreads_fv3=1
nthreads_mediator=1
[[ "${DO_WAVE}" == "YES" ]] && nthreads_ww3=1
[[ "${DO_OCN}" == "YES" ]] && nthreads_mom6=1
[[ "${DO_ICE}" == "YES" ]] && nthreads_cice6=1
fi

# PETS for the atmosphere dycore
Expand Down Expand Up @@ -646,11 +660,11 @@ case ${step} in

if [[ "${_CDUMP}" =~ "gfs" ]]; then
declare -x "npe_${step}_gfs"="${NTASKS_TOT}"
declare -x "nth_${step}_gfs"=1 # ESMF handles threading for the UFS-weather-model
declare -x "nth_${step}_gfs"="${UFS_THREADS}"
declare -x "npe_node_${step}_gfs"="${npe_node_max}"
else
declare -x "npe_${step}"="${NTASKS_TOT}"
declare -x "nth_${step}"=1 # ESMF handles threading for the UFS-weather-model
declare -x "nth_${step}"="${UFS_THREADS}"
declare -x "npe_node_${step}"="${npe_node_max}"
fi

Expand Down Expand Up @@ -692,9 +706,14 @@ case ${step} in
"C48" | "C96")
export npe_upp=${CASE:1}
;;
"C192" | "C384" | "C768")
"C192" | "C384")
export npe_upp=120
export memory_upp="96GB"
;;
"C768")
export npe_upp=120
export memory_upp="48GB"
export memory_upp="96GB"
if [[ ${machine} == "WCOSS2" ]]; then export memory_upp="480GB" ; fi
;;
*)
echo "FATAL ERROR: Resources not defined for job ${job} at resolution ${CASE}"
Expand Down
Loading
Loading