Skip to content

Commit

Permalink
for restart
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuang-jedi committed Oct 30, 2024
1 parent b1aa066 commit 7e13f93
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 19 deletions.
8 changes: 2 additions & 6 deletions SFS_baseline-c96/SFS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ arguments:
resensatmos: 96
resdetocean: 1.0
nens: 10
gfs_cyc: 1
start: restart
start: cold
comroot: {{ 'RUNTESTS' | getenv }}/COMROOT
expdir: {{ 'RUNTESTS' | getenv }}/EXPDIR
idate: 1994050100
#edate: 1994053100
#idate: 1994053100
rdate: 1994053100
edate: 1994070100
edate: 1994050100
yaml: {{ HOMEgfs }}/SFS_baseline-c96/SFS_options.yaml

skip_ci_on_hosts:
Expand Down
14 changes: 7 additions & 7 deletions SFS_baseline-c96/SFS_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ base:
DO_BUFRSND: "NO"
DO_GEMPAK: "NO"
DO_AWIPS: "NO"
DO_RESTART: "YES"
DO_RESTART: "NO"
KEEPDATA: "YES"
DO_EXTRACTVARS: "NO"
FHMAX: 1440
FHMIN: 744
FHMAX_GFS: 1464
FHMIN_GFS: 744
FHMAX_HF_GFS: 1464
FHMAX: 120
FHMIN: 0
FHMAX_GFS: 120
FHMIN_GFS: 0
FHMAX_HF_GFS: 120
FHOUT_HF_GFS: 24
FHMAX_GFS: 1440
FHMAX_GFS: 120
FHOUT: 24
FHOUT_HF: 24
FHOUT_GFS: 24
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_STAGE_IC
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "stage_ic" -c "base stage_ic"

# Execute staging
"${SCRgfs}/exglobal_stage_ic.py"
${SCRgfs}/exglobal_stage_ic.py
err=$?

###############################################################
Expand Down
4 changes: 2 additions & 2 deletions parm/config/gefs/config.base
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ export FHOUT_OCN=${FHOUT_OCN_GFS}
export FHOUT_ICE=${FHOUT_ICE_GFS}

# GFS restart interval in hours
export restart_interval_gfs=1464
export restart_interval_enkfgfs=1464
export restart_interval_gfs=${FHMAX_GFS}
export restart_interval_enkfgfs=${FHMAX_GFS}
# NOTE: Do not set this to zero. Instead set it to $FHMAX_GFS
# TODO: Remove this variable from config.base and reference from config.fcst
# TODO: rework logic in config.wave and push it to parsing_nameslist_WW3.sh where it is actually used
Expand Down
4 changes: 2 additions & 2 deletions ush/forecast_det.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ UFS_det(){
echo "model_start_date_current_cycle: $model_start_date_current_cycle"

# Determine if the current cycle is a warm start (based on the availability of restarts)
if [[ -f "${COMIN_ATMOS_RESTART_PREV}/${model_start_date_current_cycle:0:8}.${model_start_date_current_cycle:8:2}0000.coupler.res" ]]; then
#if [[ -f "${COMIN_ATMOS_RESTART_PREV}/${model_start_date_current_cycle:0:8}.${model_start_date_current_cycle:8:2}0000.coupler.res" ]]; then
warm_start=".true."
fi
#fi

# If restarts were not available, this is likely a cold start
if [[ "${warm_start}" == ".false." ]]; then
Expand Down
5 changes: 5 additions & 0 deletions ush/forecast_predet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ FV3_predet(){
make_nh=".false." # running in hydrostatic mode
fi

hydrostatic=".true."
phys_hydrostatic=".false." # ignored when hydrostatic = T
use_hydro_pressure=".false." # ignored when hydrostatic = T
make_nh=".false." # running in hydrostatic mode

# Conserve total energy as heat globally
consv_te=${consv_te:-1.} # range 0.-1., 1. will restore energy to orig. val. before physics
if [[ "${DO_NEST:-NO}" == "YES" ]] ; then
Expand Down
2 changes: 1 addition & 1 deletion workflow/hosts/awspw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ LOCALARCH: 'NO'
ATARDIR: '' # TODO: This will not yet work from AWS.
MAKE_NSSTBUFR: 'NO'
MAKE_ACFTBUFR: 'NO'
SUPPORTED_RESOLUTIONS: ['C48', 'C96', 'C768'] # TODO: Test and support all cubed-sphere resolutions.
SUPPORTED_RESOLUTIONS: ['C48', 'C96', 'C384', 'C768'] # TODO: Test and support all cubed-sphere resolutions.

0 comments on commit 7e13f93

Please sign in to comment.