Skip to content

Commit

Permalink
Update exgfs_aero_init_aerosol.py due to the restart filename change in
Browse files Browse the repository at this point in the history
this global workflow version
  • Loading branch information
zhanglikate committed May 9, 2024
1 parent 382e7bc commit 57ddc0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion parm/config/gfs/config.ufs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions scripts/exgfs_aero_init_aerosol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 57ddc0f

Please sign in to comment.