Skip to content

Commit

Permalink
Merge pull request #362 from KateFriedman-NOAA/bugfix/ffhighres
Browse files Browse the repository at this point in the history
Correct wrong settings for high-res warm-start free-forecast
  • Loading branch information
KateFriedman-NOAA authored Jul 14, 2021
2 parents 96347ea + 7a166da commit ce66c74
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions jobs/rocoto/getic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ if [[ $gfs_ver = "v16" && $EXP_WARM_START = ".true." && $CASE = $OPS_RES ]]; the

else # Opertional input - warm starts

cd $ROTDIR
# Pull CDATE gfs restart tarball
htar -xvf ${PRODHPSSDIR}/rh${yy}/${yy}${mm}/${yy}${mm}${dd}/com_gfs_prod_gfs.${yy}${mm}${dd}_${hh}.gfs_restart.tar
# Pull GDATE gdas restart tarball
Expand Down
4 changes: 3 additions & 1 deletion parm/config/config.base.emc.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,13 @@ export SENDDBN_NTC=${SENDDBN_NTC:-"NO"}
export SENDDBN=${SENDDBN:-"NO"}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

# Set operational resolution
export OPS_RES="C768" # Do not change

# Resolution specific parameters
export LEVS=128
export CASE="@CASECTL@"
export CASE_ENKF="@CASEENS@"
export OPS_RES="C768"

# Run with CCPP physics
export RUN_CCPP="YES"
Expand Down
8 changes: 4 additions & 4 deletions parm/config/config.fv3
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ case $case_in in
export layout_x=8
export layout_y=12
export layout_x_gfs=16
export layout_y_gfs=16
export layout_y_gfs=12
export npe_wav=140
export npe_wav_gfs=440
export npe_wav_gfs=140
export nth_fv3=4
export nth_fv3_gfs=7
export nth_fv3_gfs=4
export cdmbgwd="4.0,0.15,1.0,1.0" # mountain blocking, ogwd, cgwd, cgwd src scaling
export WRITE_GROUP=2
export WRTTASK_PER_GROUP=$(echo "2*$npe_node_max" |bc)
export WRITE_GROUP_GFS=8
export WRITE_GROUP_GFS=4
export WRTTASK_PER_GROUP_GFS=$(echo "2*$npe_node_max" |bc)
export WRTIOBUF="32M"
;;
Expand Down
1 change: 1 addition & 0 deletions parm/config/config.getic
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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

export UFS_DIR=${HOMEgfs}/sorc/ufs_utils.fd
export GDASINIT_DIR=${UFS_DIR}/util/gdas_init
Expand Down
9 changes: 7 additions & 2 deletions ush/rocoto/setup_expt_fcstonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def edit_baseconfig():
parser.add_argument('--configdir', help='full path to directory containing the config files', type=str, required=False, default=None)
parser.add_argument('--gfs_cyc', help='GFS cycles to run', type=int, choices=[0, 1, 2, 4], default=1, required=False)
parser.add_argument('--partition', help='partition on machine', type=str, required=False, default=None)
parser.add_argument('--start', help='restart mode: warm or cold', type=str, choices=['warm', 'cold'], required=False, default='cold')
parser.add_argument('--start', help='restart mode: warm or cold', type=str, choices=['warm', 'cold'], required=False)

args = parser.parse_args()

Expand All @@ -139,7 +139,12 @@ def edit_baseconfig():
start = args.start

# Set restart setting in config.base
if start == 'cold':
if start is None:
if res == 768:
exp_warm_start = '.true.'
else:
exp_warm_start = '.false.'
elif start == 'cold':
exp_warm_start = '.false.'
elif start == 'warm':
exp_warm_start = '.true.'
Expand Down

0 comments on commit ce66c74

Please sign in to comment.