Skip to content

Commit

Permalink
Add checks for EXP_WARM_START in config.base and config.getic
Browse files Browse the repository at this point in the history
- add OPS_RES variable to both config.base.emc.dyn and config.getic
- add if-block in both configs to force EXP_WARM_START=true if CASE=OPS_RES and gfs_ver=v16 (current ops)
- check in config.base helps with later IAU checks
- help catch when user doesn't set EXP_WARM_START=true when running v16 C768

Refs: NOAA-EMC#353
  • Loading branch information
KateFriedman-NOAA committed Jun 23, 2021
1 parent 7ed96c3 commit 0f1cea6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion parm/config/config.base.emc.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ export ARCDIR="$NOSCRUB/archive/$PSLOT"
export ICSDIR="@ICSDIR@"
export ATARDIR="/NCEPDEV/$HPSS_PROJECT/1year/$USER/$machine/scratch/$PSLOT"

# Set operational version variables
export OPS_RES="C768" # Do not change
export gfs_ver="v16" # Do not change
if [[ $gfs_ver = "v16" && $CASE = $OPS_RES ]]; then # Force EXP_WARM_START=true if v16 C768
export EXP_WARM_START=".true."
fi

# Commonly defined parameters in JJOBS
export envir=${envir:-"prod"}
export NET="gfs"
Expand Down Expand Up @@ -140,7 +147,6 @@ export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
export LEVS=128
export CASE="@CASECTL@"
export CASE_ENKF="@CASEENS@"
export OPS_RES="C768"

# Run with CCPP physics
export RUN_CCPP="YES"
Expand Down
5 changes: 5 additions & 0 deletions parm/config/config.getic
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ echo "BEGIN: config.getic"

export RETRO="NO" # YES = Pull v16 inputs from retrospective parallels; NO = use operational inputs
export gfs_ver="v16" # Default = v16
export OPS_RES=${OPS_RES:-"C768"} # Operational resolution

if [[ $gfs_ver = "v16" && $CASE = $OPS_RES ]]; then # Going to be using warm starts
export EXP_WARM_START=".true."
fi

export UFS_DIR=${HOMEgfs}/sorc/ufs_utils.fd
export GDASINIT_DIR=${UFS_DIR}/util/gdas_init
Expand Down

0 comments on commit 0f1cea6

Please sign in to comment.