Skip to content

Commit

Permalink
Change order of RUNs (#3335)
Browse files Browse the repository at this point in the history
The rocoto workflow currently lists the gdas tasks first, then enkfgdas,
then gfs. However, this is reversed from the logical order, where
[enkf]gfs is the "early cycle" and [enkf]gdas is the "late cycle".

Resolves #3306
  • Loading branch information
mingshichen-noaa authored Feb 25, 2025
1 parent 0a0f1d6 commit d38841f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions workflow/applications/gfs_cycled.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ def __init__(self, conf: Configuration):
elif ens_run in ['gfs', 'gdas']:
self.ens_runs = [ens_run]

# Now construct self.runs the desired XML order (gdas, enkfgdas, gfs, enkfgfs)
self.runs = ["gdas"] # We always have a 'gdas' run
# Now construct self.runs the desired XML order (gfs, enkfgfs, gdas, enkfgdas)
self.runs = []
self.runs.append('gfs') if base['INTERVAL_GFS'] > 0 else 0
self.runs.append('enkfgfs') if 'gfs' in self.ens_runs and 'gfs' in self.runs else 0
self.runs.append('gdas') # We always have a 'gdas' run
self.runs.append('enkfgdas') if 'gdas' in self.ens_runs else 0
self.runs.append("gfs") if base['INTERVAL_GFS'] > 0 else 0
self.runs.append('enkfgfs') if 'gfs' in self.ens_runs and "gfs" in self.runs else 0

def _get_run_options(self, conf: Configuration) -> Dict[str, Any]:

Expand Down

0 comments on commit d38841f

Please sign in to comment.