Skip to content

Commit

Permalink
more testing on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuang-jedi committed Oct 30, 2024
1 parent d74be67 commit 659734a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
7 changes: 5 additions & 2 deletions parm/config/gefs/config.base
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,12 @@ else
export OFFSET_START_HOUR=0
fi

export DO_RESTART=@DO_RESTART@
if [[ "${DO_RESTART:-NO}" == "YES" ]]; then
export RERUN=@RERUN@
if [[ "${RERUN:-NO}" == "YES" ]]; then
export OFFSET_START_HOUR="@FHMIN_GFS@"
export RERUN_DATE="@RERUN_DATE@"
else
export RERUN_DATE="1000010100"
fi

# GFS output and frequency
Expand Down
2 changes: 0 additions & 2 deletions parm/config/gefs/config.stage_ic
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export BASE_IC="@BASE_IC@" # Platform home for staged ICs

export STAGE_IC_YAML_TMPL="${PARMgfs}/stage/master_gefs.yaml.j2"

export DO_RESTART="YES"

# Set ICSDIR

if [[ -z "${ICSDIR}" ]] ; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/exglobal_stage_ic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main():
'assim_freq', 'current_cycle', 'previous_cycle',
'ROTDIR', 'ICSDIR', 'STAGE_IC_YAML_TMPL', 'DO_JEDIATMVAR',
'OCNRES', 'waveGRD', 'ntiles', 'DOIAU', 'DO_JEDIOCNVAR',
'REPLAY_ICS', 'DO_WAVE', 'DO_OCN', 'DO_ICE', 'DO_NEST', 'DO_RESTART']
'REPLAY_ICS', 'DO_WAVE', 'DO_OCN', 'DO_ICE', 'DO_NEST', 'RERUN']

stage_dict = AttrDict()
for key in keys:
Expand Down
4 changes: 2 additions & 2 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
restart_date=${RERUN_DATE:-1000010100}
echo "restart_date: $restart_date"

RERUN=YES
RERUN_DATE=1994050600
#RERUN=YES
#RERUN_DATE=1994050600

# Disable variable not used warnings
# shellcheck disable=SC2034
Expand Down

0 comments on commit 659734a

Please sign in to comment.