Skip to content

Commit

Permalink
Adds group size and nmem for GEFS (#1127)
Browse files Browse the repository at this point in the history
Adds additional settings for ensemble forecast group size and number of members since gfs CDUMP (GEFS) will have different values than GDAS.

NMEM_EFCS sets the number of members for GEFS (default: 30)
NMEM_EFCSGRP_GFS sets the number of members per job for GEFS (default: 1)

Fixes #1117
  • Loading branch information
XianwuXue-NOAA authored Nov 29, 2022
1 parent 9955a26 commit 2aa654c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/JGDAS_ENKF_FCST
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export FHMAX=$FHMAX_ENKF


# Get ENSBEG/ENSEND from ENSGRP and NMEM_EFCSGRP
if [[ $CDUMP == "gfs" ]]; then
export NMEM_EFCSGRP=${NMEM_EFCSGRP_GFS:-${NMEM_EFCSGRP:-1}}
fi
export ENSEND=$((NMEM_EFCSGRP * 10#${ENSGRP}))
export ENSBEG=$((ENSEND - NMEM_EFCSGRP + 1))

Expand Down
1 change: 1 addition & 0 deletions parm/config/config.base.emc.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ export DO_JEDIENS="NO"
# Hybrid related
export DOHYBVAR="YES"
export NMEM_ENKF=@NMEM_ENKF@
export NMEM_EFCS=30
export SMOOTH_ENKF="NO"
export l4densvar=".true."
export lwrite4danl=".true."
Expand Down
1 change: 1 addition & 0 deletions parm/config/config.efcs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export OUTPUT_FILETYPE_SFC="netcdf"

# Number of enkf members per fcst job
export NMEM_EFCSGRP=2
export NMEM_EFCSGRP_GFS=1
export RERUN_EFCSGRP="NO"

# Turn off inline UPP for EnKF forecast
Expand Down
4 changes: 4 additions & 0 deletions scripts/exgdas_enkf_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ SUFFIX=${SUFFIX:-""}
FHMIN=${FHMIN_EPOS:-3}
FHMAX=${FHMAX_EPOS:-9}
FHOUT=${FHOUT_EPOS:-3}

if [[ $CDUMP == "gfs" ]]; then
NMEM_ENKF=${NMEM_EFCS:-${NMEM_ENKF:-30}}
fi
NMEM_ENKF=${NMEM_ENKF:-80}
SMOOTH_ENKF=${SMOOTH_ENKF:-"NO"}
ENKF_SPREAD=${ENKF_SPREAD:-"NO"}
Expand Down
2 changes: 2 additions & 0 deletions workflow/rocoto/workflow_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,8 @@ def efcs(self):

groups = self._get_hybgroups(self._base['NMEM_ENKF'], self._configs['efcs']['NMEM_EFCSGRP'])

if self.cdump == "gfs":
groups = self._get_hybgroups(self._base['NMEM_EFCS'], self._configs['efcs']['NMEM_EFCSGRP_GFS'])
cycledef = 'gdas_half,gdas' if self.cdump in ['gdas'] else self.cdump
resources = self.get_resource('efcs')
task = create_wf_task('efcs', resources, cdump=self.cdump, envar=efcsenvars, dependency=dependencies,
Expand Down

0 comments on commit 2aa654c

Please sign in to comment.