Skip to content

Commit ad96f4c

Browse files
Factor out files_to_* documentation.
1 parent 43f1214 commit ad96f4c

File tree

10 files changed

+29
-84
lines changed

10 files changed

+29
-84
lines changed

docs/sections/user_guide/yaml/components/fv3.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,7 @@ field_table:
3535

3636
The path to a :weather-model-io:`valid field-table file<field-table-file>` to be copied into the run directory.
3737

38-
files_to_copy:
39-
^^^^^^^^^^^^^^
40-
41-
See :ref:`this page <files_yaml>` for details.
42-
43-
files_to_link:
44-
^^^^^^^^^^^^^^
45-
46-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
38+
.. include:: /shared/stager.rst
4739

4840
lateral_boundary_conditions:
4941
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

docs/sections/user_guide/yaml/components/ioda.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ configuration_file:
2525

2626
Supports ``base_file:`` and ``update_values:`` blocks (see :ref:`updating_values` for details).
2727

28-
files_to_copy:
29-
^^^^^^^^^^^^^^
30-
31-
See :ref:`this page <files_yaml>` for details.
32-
33-
files_to_link:
34-
^^^^^^^^^^^^^^
35-
36-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
28+
.. include:: /shared/stager.rst
3729

3830
rundir:
3931
^^^^^^^

docs/sections/user_guide/yaml/components/jedi.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ configuration_file:
2525

2626
Supports ``base_file:`` and ``update_values:`` blocks (see :ref:`updating_values` for details).
2727

28-
files_to_copy:
29-
^^^^^^^^^^^^^^
30-
31-
See :ref:`this page <files_yaml>` for details.
32-
33-
files_to_link:
34-
^^^^^^^^^^^^^^
35-
36-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
28+
.. include:: /shared/stager.rst
3729

3830
rundir:
3931
^^^^^^^

docs/sections/user_guide/yaml/components/mpas.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,9 @@ length:
4949

5050
The length of the forecast in integer hours.
5151

52-
files_to_copy:
53-
^^^^^^^^^^^^^^
52+
.. include:: /shared/stager.rst
5453

55-
See :ref:`this page <files_yaml>` for details.
56-
57-
To reduce duplication of information in this section, it may be helpful to template the file that depends on the number of cores being used to run the executable. For example, instead of:
54+
To reduce duplication of information in these sections, it may be helpful to template the file that depends on the number of cores being used to run the executable. For example, instead of:
5855

5956
.. code-block:: text
6057
@@ -70,11 +67,6 @@ Jinja2 expressions can be used to reference the number of cores used in executio
7067
files_to_copy:
7168
conus.graph.info.part.{{mpas.execution["batchargs"]["cores"]}}: /path/to/conus.graph.info.part.{{mpas.execution["batchargs"]["cores"]}}
7269
73-
files_to_link:
74-
^^^^^^^^^^^^^^
75-
76-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
77-
7870
namelist:
7971
^^^^^^^^^
8072

docs/sections/user_guide/yaml/components/mpas_init.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ execution:
4343

4444
See :ref:`this page <execution_yaml>` for details.
4545

46-
files_to_copy:
47-
^^^^^^^^^^^^^^
46+
.. include:: /shared/stager.rst
4847

49-
See :ref:`this page <files_yaml>` for details.
50-
51-
To reduce duplication of information in this section, it may be helpful to template the file that depends on the number of cores being used to run the executable. For example, instead of:
48+
To reduce duplication of information in these sections, it may be helpful to template the file that depends on the number of cores being used to run the executable. For example, instead of:
5249

5350
.. code-block:: text
5451
@@ -64,11 +61,6 @@ Jinja2 expressions can be used to reference the number of cores used in executio
6461
files_to_copy:
6562
conus.graph.info.part.{{mpas_init.execution["batchargs"]["cores"]}}: /path/to/conus.graph.info.part.{{mpas_init.execution["batchargs"]["cores"]}}
6663
67-
files_to_link:
68-
^^^^^^^^^^^^^^
69-
70-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
71-
7264
namelist:
7365
^^^^^^^^^
7466

docs/sections/user_guide/yaml/components/mpassit.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ execution:
2121

2222
See :ref:`this page <execution_yaml>` for details.
2323

24-
files_to_copy:
25-
^^^^^^^^^^^^^^
24+
.. include:: /shared/stager.rst
2625

27-
See :ref:`this page <files_yaml>` for details.
28-
29-
To reduce duplication of information in this section, it may be helpful to reference the config value that specifies the number of cores used to run the executable. For example, instead of:
26+
To reduce duplication of information in these sections, it may be helpful to reference the config value that specifies the number of cores used to run the executable. For example, instead of:
3027

3128
.. code-block:: text
3229
@@ -42,11 +39,6 @@ Jinja2 expressions can be used to reference the number of cores used for executi
4239
files_to_copy:
4340
x1.999.graph.info.part.{{ mpassit.execution.batchargs.cores }}: /path/to/x1.999.graph.info.part.{{ mpassit.execution.batchargs.cores }}
4441
45-
files_to_link:
46-
^^^^^^^^^^^^^^
47-
48-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
49-
5042
namelist:
5143
^^^^^^^^^
5244

docs/sections/user_guide/yaml/components/orog.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,7 @@ execution:
2626

2727
See :ref:`here <execution_yaml>` for details.
2828

29-
files_to_copy:
30-
^^^^^^^^^^^^^^
31-
32-
See :ref:`this page <files_yaml>` for details.
33-
34-
files_to_link:
35-
^^^^^^^^^^^^^^
36-
37-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
29+
.. include:: /shared/stager.rst
3830

3931
mask:
4032
^^^^^

docs/sections/user_guide/yaml/components/upp.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,7 @@ execution:
2121

2222
See :ref:`this page <execution_yaml>` for details.
2323

24-
files_to_copy:
25-
^^^^^^^^^^^^^^
26-
27-
See :ref:`this page <files_yaml>` for details.
28-
29-
files_to_link:
30-
^^^^^^^^^^^^^^
31-
32-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
24+
.. include:: /shared/stager.rst
3325

3426
namelist:
3527
^^^^^^^^^

docs/sections/user_guide/yaml/components/upp_assets.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@ Here is a prototype UW YAML ``upp_assets:`` block, explained in detail below:
1616
UW YAML for the ``upp_assets:`` Block
1717
-------------------------------------
1818

19-
files_to_copy:
20-
^^^^^^^^^^^^^^
21-
22-
See :ref:`this page <files_yaml>` for details.
23-
24-
files_to_link:
25-
^^^^^^^^^^^^^^
26-
27-
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.
19+
.. include:: /shared/stager.rst
2820

2921
namelist:
3022
^^^^^^^^^

docs/shared/stager.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
.. _filestager_yaml:
3+
4+
files_to_copy:
5+
^^^^^^^^^^^^^^
6+
7+
See :ref:`this page <files_yaml>` for details.
8+
9+
files_to_hardlink:
10+
^^^^^^^^^^^^^^
11+
12+
Identical to ``files_to_copy:`` except that hard links will be created in the run directory instead of copies, when possible. Otherwise a copy will be created.
13+
14+
files_to_link:
15+
^^^^^^^^^^^^^^
16+
17+
Identical to ``files_to_copy:`` except that symbolic links will be created in the run directory instead of copies.

0 commit comments

Comments
 (0)