From 57ddc0fa6d069f7442cab41d579321e17be51e85 Mon Sep 17 00:00:00 2001 From: "Kate.Zhang" Date: Thu, 9 May 2024 17:48:32 +0000 Subject: [PATCH] Update exgfs_aero_init_aerosol.py due to the restart filename change in this global workflow version --- parm/config/gfs/config.ufs | 10 +++++++++- scripts/exgfs_aero_init_aerosol.py | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/parm/config/gfs/config.ufs b/parm/config/gfs/config.ufs index fb21cf6081..2330997633 100644 --- a/parm/config/gfs/config.ufs +++ b/parm/config/gfs/config.ufs @@ -210,7 +210,13 @@ case "${fv3_res}" in export layout_y=8 export layout_x_gfs=8 export layout_y_gfs=8 - export nthreads_fv3=2 +#S2S: + #export layout_x=15 + #export layout_y=12 + #export layout_x_gfs=15 + #export layout_y_gfs=12 + + export nthreads_fv3=2 export nthreads_fv3_gfs=2 export nthreads_ufs=2 export nthreads_ufs_gfs=2 @@ -219,8 +225,10 @@ case "${fv3_res}" in export knob_ugwp_tauamp=0.8e-3 # setting for UGWPv1 non-stationary GWD export WRITE_GROUP=4 export WRTTASK_PER_GROUP_PER_THREAD_PER_TILE=10 + #S2S: export WRTTASK_PER_GROUP_PER_THREAD_PER_TILE=20 export WRITE_GROUP_GFS=4 export WRTTASK_PER_GROUP_PER_THREAD_PER_TILE_GFS=10 + #S2S: export WRTTASK_PER_GROUP_PER_THREAD_PER_TILE_GFS=20 fi ;; "C768") diff --git a/scripts/exgfs_aero_init_aerosol.py b/scripts/exgfs_aero_init_aerosol.py index 74f4a6d17a..ccede17c62 100755 --- a/scripts/exgfs_aero_init_aerosol.py +++ b/scripts/exgfs_aero_init_aerosol.py @@ -199,9 +199,9 @@ def get_restart_files(time: datetime, incr: int, max_lookback: int, fcst_length: if (lookback > fcst_length): # Trying to look back farther than the length of a forecast break - elif (lookback == fcst_length): + # elif (lookback == fcst_length): # Restart files at the end of the cycle don't have a timestamp - timestamp = "" + # timestamp = "" else: timestamp = time.strftime("%Y%m%d.%H0000.")