Skip to content

Commit a783f9b

Browse files
Add gfs cycles to C48mx500_3DVarAOWCDA (#3249)
The test `C48mx500_3DVarAOWCDA` will be updated to test gfs cycles Resolves #2563
1 parent ee54eac commit a783f9b

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

ci/cases/pr/C48mx500_3DVarAOWCDA.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ experiment:
44

55
arguments:
66
pslot: {{ 'pslot' | getenv }}
7-
app: S2S
7+
app: S2SW
88
resdetatmos: 48
99
resdetocean: 5.0
1010
comroot: {{ 'RUNTESTS' | getenv }}/COMROOT
@@ -13,7 +13,7 @@ arguments:
1313
idate: 2021032418
1414
edate: 2021032500
1515
nens: 0
16-
interval: 0
16+
interval: 6
1717
start: warm
1818
yaml: {{ HOMEgfs }}/ci/cases/yamls/soca_gfs_defaults_ci.yaml
1919

ci/cases/yamls/soca_gfs_defaults_ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ defaults:
33
base:
44
ACCOUNT: {{ 'HPC_ACCOUNT' | getenv }}
55
DO_JEDIOCNVAR: "YES"
6+
DO_METP: "NO"
67

78
marineanl:
89
SOCA_NINNER: 1

parm/archive/gdaswave.yaml.j2

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,15 @@ gdaswave:
44
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gdaswave.tar"
55
required:
66
# TODO explicitly name the wave grid/station files to archive
7-
- "{{ COMIN_WAVE_GRID | relpath(ROTDIR) }}/{{ head }}*"
7+
{% set WAVE_OUT_GRIDS_list = WAVE_OUT_GRIDS.split(' ') %}
8+
{% for grd in WAVE_OUT_GRIDS_list %}
9+
{% set tmpl_dict = ({ '${ROTDIR}':ROTDIR,
10+
'${RUN}':RUN,
11+
'${YMD}':cycle_YMD,
12+
'${HH}':cycle_HH,
13+
'${MEMDIR}':'',
14+
'${GRDRESNAME}':grd}) %}
15+
{% set file_path = COM_WAVE_GRID_RES_TMPL | replace_tmpl(tmpl_dict) %}
16+
- "{{ file_path | relpath(ROTDIR) }}/{{ head }}*"
17+
{% endfor %}
818
- "{{ COMIN_WAVE_STATION | relpath(ROTDIR) }}/{{ head }}*"

parm/archive/gfswave.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gfswave:
22
{% set head = "gfswave.t" + cycle_HH + "z." %}
3-
3+
44
name: "GFSWAVE"
55
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gfswave.tar"
66
required:
@@ -13,8 +13,8 @@ gfswave:
1313
'${HH}':cycle_HH,
1414
'${MEMDIR}':'',
1515
'${GRDRESNAME}':grd}) %}
16-
{% set file_path = COM_WAVE_GRID_RES_TMPL | replace_tmpl(tmpl_dict) %}
17-
16+
{% set file_path = COM_WAVE_GRID_RES_TMPL | replace_tmpl(tmpl_dict) %}
17+
1818
{% for fh in range(0, FHMAX_HF_WAV + FHOUT_HF_WAV, FHOUT_HF_WAV) %}
1919
# NOTE This is as explicit as possible without major logic to parse wavepostGRD.
2020
# Matches files of the form "gfswave.tCCz.<region>.<res>.fHHH.grib2".

workflow/rocoto/gfs_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ def wavepostsbs(self):
12331233
deps.append(rocoto.add_dependency(dep_dict))
12341234
dependencies = rocoto.create_dependency(dep=deps, dep_condition='or')
12351235

1236-
fhrs = self._get_forecast_hours('gfs', self._configs['wavepostsbs'], 'wave')
1236+
fhrs = self._get_forecast_hours(self.run, self._configs['wavepostsbs'], 'wave')
12371237
max_tasks = self._configs['wavepostsbs']['MAX_TASKS']
12381238
fhr_var_dict = self.get_grouped_fhr_dict(fhrs=fhrs, ngroups=max_tasks)
12391239

0 commit comments

Comments
 (0)