Skip to content

Commit

Permalink
Fix ensemble archive groups to include all members (NOAA-EMC#2402)
Browse files Browse the repository at this point in the history
The number of groups used in the ensemble archive step (earc) needs to
include a task for the ensemble stat files such as the mean and the
spread, resulting in `n_groups+1` tasks for `earc`.

Resolves: NOAA-EMC#2390
  • Loading branch information
CatherineThomas-NOAA committed Mar 15, 2024
1 parent 056cfdc commit a5f2495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/rocoto/gfs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,7 @@ def earc(self):

# Integer division is floor division, but we need ceiling division
n_groups = -(self.nmem // -self._configs['earc']['NMEM_EARCGRP'])
groups = ' '.join([f'{grp:02d}' for grp in range(0, n_groups)])
groups = ' '.join([f'{grp:02d}' for grp in range(0, n_groups + 1)])

cycledef = 'gdas_half,gdas' if self.cdump in ['enkfgdas'] else self.cdump.replace('enkf', '')

Expand Down

0 comments on commit a5f2495

Please sign in to comment.