Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mild flow.cylc cleanup #29

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions flow.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
{# branch, the ppan site file should be specified. The ppan site comprises of gfdl specific tools. Other available #}
{# sites include ppan, gfdl-ws, and generic. The generic.cylc site file is used for a portable flow.cylc. #}
{# (Probably, we should use similar mechanisms where sensible, e.g. for shared items among workflows) #}
{% set SITE = SITE %}

{# Calculate the number of history segments per a-chunk #}
{% set HIST_SEGMENTS_PER_CHUNK_A = (PP_CHUNK_A | duration_as('s') / HISTORY_SEGMENT | duration_as('s')) | int %}
Expand All @@ -20,7 +19,6 @@
{# months_per_chunk_a #}
{% set MOS_PER_CHUNK_A = (PP_CHUNK_A | duration_as('s') / SECS_PER_365CAL_MONTH) | int %}


{# Calculate the number of a-chunks per b-chunk (if desired) #}
{% set DO_SECONDARY_PP = False %}
{% if PP_CHUNK_B is defined and PP_CHUNK_B != PP_CHUNK_A %}
Expand All @@ -41,11 +39,11 @@
{% endif %}

[meta]
title = "Postprocessing Example 1"
title = "Postprocessing"
description = """
Postprocessing example that includes Bronx-like functionality,
Postprocess FMS history files
"""
URL = https://gitlab.gfdl.noaa.gov/fre2/workflows/postprocessing
URL = https://github.com/NOAA-GFDL/fre-workflows.git

[scheduler]
{# Implicit tasks are tasks without explicit runtime definitions in [runtime], often typos. #}
Expand Down Expand Up @@ -89,8 +87,6 @@
{# Standard Jinja2 triggers are also available (e.g. "replace") #}
component = {{ PP_COMPONENTS | replace(' ', ', ') }}



[scheduling]
initial cycle point = {{ PP_START }}
final cycle point = {{ PP_STOP }}
Expand Down Expand Up @@ -196,7 +192,6 @@ rename-split-to-pp-native<native> => clean-split-native
{% endif %}
"""


#
# Recurrence interval R1: run only once. useful for statics.
#
Expand Down Expand Up @@ -249,7 +244,6 @@ combine-statics => clean-pp-statics
{% endif %}
"""


#
# Recurrence interval: every CHUNK-A
#
Expand Down Expand Up @@ -327,7 +321,6 @@ REMAP-PP-COMPONENTS-TS-{{ PP_CHUNK_A }}:succeed-all => mdtf
REMAP-PP-COMPONENTS-TS-{{ PP_CHUNK_A }}:succeed-all => data-catalog?
"""


#
# Recurrence interval: every CHUNK-B
#
Expand Down Expand Up @@ -1188,8 +1181,6 @@ REMAP-PP-COMPONENTS-AV-{{ PP_CHUNK_B }}:succeed-all => clean-shards-{{ PP_CHUNK_
"""
{% endif %}



# Site-specific settings
{% include 'site/' ~ SITE ~ '.cylc' %}

Expand Down