-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds FBWINDS support to global-workflow (#2082)
This PR addresses issue #1221. The following was accomplished: - A new Rocoto job is added; `jobs/rocoto/fbwinds.sh`; - `workflow/applications/gfs_cycled.py` is updated to include the `fbwinds` task; - `workflow/applications/gfs_forecast_only.py` is updated to include the `fbwinds` task; - A new function is added to `workflow/rocoto/gfs_tasks.py`, `fbwinds` is added as new GFS (only) task; - `workflow/rocoto/tasks.py` is updated to include the `fbwinds` task. Resolves #1221
- Loading branch information
1 parent
513db19
commit 8c11eeb
Showing
6 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
|
||
############################################################### | ||
. "${HOMEgfs}/ush/load_fv3gfs_modules.sh" | ||
status=$? | ||
if (( status != 0 )); then exit "${status}"; fi | ||
|
||
export job="fbwinds" | ||
export jobid="${job}.$$" | ||
|
||
# Execute the JJOB | ||
"${HOMEgfs}/jobs/JGFS_ATMOS_FBWINDS" | ||
|
||
status=$? | ||
exit "${status}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -796,6 +796,32 @@ def postsnd(self): | |
|
||
return task | ||
|
||
def fbwinds(self): | ||
|
||
atmos_prod_path = self._template_to_rocoto_cycstring(self._base["COM_ATMOS_GRIB_GRID_TMPL"], {'RUN': self.cdump, 'GRID': '0p25'}) | ||
deps = [] | ||
data = f'{atmos_prod_path}/{self.cdump}[email protected]' | ||
dep_dict = {'type': 'data', 'data': data, 'age': 120} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
data = f'{atmos_prod_path}/{self.cdump}[email protected]' | ||
dep_dict = {'type': 'data', 'data': data, 'age': 120} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
data = f'{atmos_prod_path}/{self.cdump}[email protected]' | ||
dep_dict = {'type': 'data', 'data': data, 'age': 120} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep=deps, dep_condition='and') | ||
|
||
resources = self.get_resource('awips') | ||
|
||
# TODO: It would be better to use task dependencies on the | ||
# individual post jobs rather than data dependencies to avoid | ||
# prematurely starting with partial files. Unfortunately, the | ||
# ability to "group" post would make this more convoluted than | ||
# it should be and not worth the complexity. | ||
task = create_wf_task('fbwinds', resources, cdump=self.cdump, envar=self.envars, dependency=dependencies) | ||
|
||
return task | ||
|
||
def awips(self): | ||
|
||
def _get_awipsgroups(cdump, config): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters