Skip to content

Commit

Permalink
Split fv3 yaml into warm and cold
Browse files Browse the repository at this point in the history
Also fix to set target and remove source

Refs NOAA-EMC#2475
  • Loading branch information
KateFriedman-NOAA committed May 22, 2024
1 parent 7fc7b89 commit 11df1af
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 36 deletions.
36 changes: 0 additions & 36 deletions parm/stage/fv3.yaml.j2

This file was deleted.

15 changes: 15 additions & 0 deletions parm/stage/fv3_cold.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# # First 1/2 cycle also needs a atmos increment if doing warm start
# if inputs.start in ['warm']:
# for ftype in ['atmi003.nc', 'atminc.nc', 'atmi009.nc']:
# if inputs.nens > 0:
#for ftype in ['ratmi003.nc', 'ratminc.nc', 'ratmi009.nc']
fv3_cold:
name: "FV3_COLD"
target: "{{ COM_ATMOS_INPUT }}"
required:
- "{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMD }}{{ cycle_HH }}/atmos/gfs_ctrl.nc"
{% for ftype in ["gfs_data", "sfc_data"] %}
{% for ntile in range(1, ntiles + 1) %}
- "{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMD }}{{ cycle_HH }}/atmos/{{ ftype }}.tile{{ ntile }}.nc"
{% endfor %} # ntile
{% endfor %} # ftype
19 changes: 19 additions & 0 deletions parm/stage/fv3_warm.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# # First 1/2 cycle also needs a atmos increment if doing warm start
# if inputs.start in ['warm']:
# for ftype in ['atmi003.nc', 'atminc.nc', 'atmi009.nc']:
# if inputs.nens > 0:
#for ftype in ['ratmi003.nc', 'ratminc.nc', 'ratmi009.nc']
fv3_warm:
name: "FV3_WARM"
target: "{{ COM_ATMOS_RESTART_PREV }}"
required:
#TODO: Set MEMDIR as empty if not set?
{% set head = "{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMD }}{{ cycle_HH }}/{{ MEMDIR }}/atmos/{{ cycle_YMD }}.{{ cycle_HH }}0000." %}
{% for ftype in ["coupler.res", "fv_core.res.nc"] %}
- "{{ head }}{{ ftype }}"
{% 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) %}
- "{{ head }}{{ ftype }}.tile{{ ntile }}.nc"
{% endfor %} # ntile
{% endfor %} # ftype

0 comments on commit 11df1af

Please sign in to comment.