Skip to content

Commit

Permalink
Indent secondary yaml loops
Browse files Browse the repository at this point in the history
Improve readability of the stage yamls

Refs NOAA-EMC#2475
  • Loading branch information
KateFriedman-NOAA committed Jun 3, 2024
1 parent 561be58 commit 3f08f03
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions parm/stage/fv3_cold.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fv3_cold:
copy:
- ["{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMDH }}/{{ MEMDIR }}/atmos/gfs_ctrl.nc", "{{ COM_ATMOS_INPUT }}"]
{% for ftype in ["gfs_data", "sfc_data"] %}
{% for ntile in range(1, ntiles + 1) %}
{% for ntile in range(1, ntiles + 1) %}
- ["{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMDH }}/{{ MEMDIR }}/atmos/{{ ftype }}.tile{{ ntile }}.nc", "{{ COM_ATMOS_INPUT }}"]
{% endfor %} # ntile
{% endfor %} # ntile
{% endfor %} # ftype
10 changes: 5 additions & 5 deletions parm/stage/fv3_nest.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ fv3_nest:
mkdir:
- "{{ COM_ATMOS_RESTART_PREV }}"
copy:
{% if EXP_WARM_START %}
{% for ftype in ca_data fv_core.res fv_srf_wnd.res fv_tracer.res phy_data sfc_data %}
{% if EXP_WARM_START == True %}
{% for ftype in ca_data fv_core.res fv_srf_wnd.res fv_tracer.res phy_data sfc_data %}
- ["{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMDH }}/{{ MEMDIR }}/atmos/{{ cycle_YMD }}.{{ cycle_HH }}0000.{{ ftype }}.tile{{ ntile }}.nc", "{{ COM_ATMOS_RESTART_PREV }}/{{ cycle_YMD }}.{{ cycle_HH }}0000.{{ ftype }}.nest0{{ ntile-5 }}.tile{{ ntile }}.nc"]
{% endfor %} # ftype
{% endfor %} # ftype
{% else %}
{% for ftype in gfs_data sfc_data %}
{% for ftype in gfs_data sfc_data %}
- ["{{ COM_ATMOS_INPUT }}/{{ ftype }}.tile{{ ntile }}.nc", "{{ COM_ATMOS_INPUT }}/{{ ftype }}.nest02.tile{{ ntile }}.nc"]
{% endfor %} # ftype
{% endfor %} # ftype
{% endif %} # cold-start
4 changes: 2 additions & 2 deletions parm/stage/fv3_warm.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fv3_warm:
- ["{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMDH }}/{{ MEMDIR }}/atmos/{{ cycle_YMD }}.{{ cycle_HH }}0000.{{ ftype }}", "{{ COM_ATMOS_RESTART_PREV }}"]
{% endfor %}
{% for ftype in ["ca_data", "fv_core.res", "fv_srf_wnd.res", "fv_tracer.res", "phy_data sfc_data"] %}
{% for ntile in range(1, ntiles + 1) %}
{% for ntile in range(1, ntiles + 1) %}
- ["{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMDH }}/{{ MEMDIR }}/atmos/{{ cycle_YMD }}.{{ cycle_HH }}0000.{{ ftype }}.tile{{ ntile }}.nc", "{{ COM_ATMOS_RESTART_PREV }}"]
{% endfor %} # ntile
{% endfor %} # ntile
{% endfor %} # ftype
6 changes: 3 additions & 3 deletions parm/stage/ocean.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ ocean:
# Resolution based initial conditions
#------------------------------------
{% if OCNRES == "025" %}
{% for nn in range(1, 3) %}
{% for nn in range(1, 3) %}
- ["{{ BASE_CPLIC }}/{{ CPL_OCNIC }}/{{ cycle_YMDH }}/{{ MEMDIR }}/ocean/{{ cycle_YMD }}.{{ cycle_HH }}0000.MOM.res_{{ nn }}.nc", "{{ COM_OCEAN_RESTART_PREV }}"]
{% endfor %}
{% endfor %}
{% endif %}
#-------------------------
# Ocean Perturbation Files
#-------------------------
{% if MEMDIR and USE_OCN_PERTURB_FILES %}
{% if MEMDIR and USE_OCN_PERTURB_FILES == True %}
- ["{{ BASE_CPLIC }}/{{ CPL_OCNIC }}/{{ cycle_YMDH }}/{{ MEMDIR }}/ocean/{{ cycle_YMD }}.{{ cycle_HH }}0000.mom6_increment.nc", "{{ COM_OCEAN_RESTART_PREV }}"]
{% endif %}

0 comments on commit 3f08f03

Please sign in to comment.