Skip to content

Commit 3d7dc34

Browse files
committed
Merge branch 'main' into ufs-dev-PR253
2 parents afafa20 + 1df3491 commit 3d7dc34

File tree

5 files changed

+37
-13
lines changed

5 files changed

+37
-13
lines changed

scm/doc/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ latex:
1313
html:
1414
python -m sphinx -T -b html -d _build/doctrees -D language=en TechGuide html
1515

16+
open:
17+
open html/index.html
18+
1619
clean:
1720
rm -fr _build html latex
1821

scm/doc/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22

33
The SCM technical documentation/users' guide is written in [reStructured Text markup language (RST)](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html). It is designed to be built with the [Sphinx documentation tool](https://www.sphinx-doc.org/en/master/index.html), and is documentation from the `main` branch is configured to build automatically on ReadTheDocs: https://ccpp-scm.readthedocs.io/en/latest/
44

5-
## Building docs locally
6-
5+
## Building documentation locally
6+
### Quick Build
7+
```
8+
$ make html
9+
$ make open
10+
```
11+
12+
### Detailed Build Instructions
713
To build the HTML documentation locally (for example, when testing modifications to the documentation), you must have Sphinx [installed on your machine](https://www.sphinx-doc.org/en/master/usage/installation.html), as well as the required python packages listed in the `requirements.txt` file. Once the prerequisite software is installed, you can build the HTML documentation using the following commands:
814

9-
python -m sphinx -T -b html -d _build/doctrees -D language=en . html
15+
$ python -m sphinx -T -b html -d _build/doctrees -D language=en . html
16+
$ open html/index.html
1017

1118
To build a PDF locally, in addition to Sphinx you must have Perl as well as the Perl-based [`latexmk` utility](https://mg.readthedocs.io/latexmk.html#installation). You can then build a PDF using the following commands:
1219

13-
python -m sphinx -T -b latex -d _build/doctrees -D language=en . latex
14-
latexmk -f -pdf -pdflatex="pdflatex" -use-make index.tex
20+
$ python -m sphinx -T -b latex -d _build/doctrees -D language=en . latex
21+
$ latexmk -f -pdf -pdflatex="pdflatex" -use-make index.tex
1522

1623
In lieu of running the above commands manually, you can also use `make`. The command `make all` will build both HTML and PDF documentation, while `make html` and `make latex` will build HTML and PDF respectively.
17-

scm/doc/TechGuide/chap_cases.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,25 @@ Case input data file (DEPHY format)
101101
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102102

103103
The Development and Evaluation of Physics in atmospheric models (DEPHY)
104-
format is an internationally-adopted data format intended for use by SCM
104+
format is an internationally-adopted data format intended for use by SCMs
105105
and LESs. The initialization and forcing data for each case in the CCPP SCM
106106
repository is stored in a NetCDF (version 4) file. Additional cases in DEPHY
107-
format, not maintained by the DTC, can be cloned from the DEPHY-SCM repository,
108-
and run by providing the DEPHY-SCM file location to the SCM. For example:
107+
format, not maintained by the DTC, can be cloned from the `DEPHY-SCM
108+
<https://github.com/GdR-DEPHY/DEPHY-SCM>`__ repository, and run by providing the
109+
DEPHY-SCM file location to the SCM.
110+
111+
.. note::
112+
113+
Not all forcing methods available in external DEPHY-SCM cases are currently
114+
supported in the CCPP SCM. For example:
115+
116+
- ``surface_forcing_moisture``: "beta", "mrsos"
117+
- ``surface_forcing_wind``: "ustar"
118+
- ``surface_type``: "seaice"
119+
120+
Be sure to verify that the case you wish to run is compatible with the CCPP SCM.
121+
122+
Example to run a DEPHY-SCM case:
109123

110124
.. code:: bash
111125

scm/doc/TechGuide/chap_quick.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,9 @@ If using the model on HPC resources and significant amounts of processor
711711
time is anticipated for the experiments, it will likely be necessary to
712712
submit a job through the HPC’s batch system. An example script has been
713713
included in the repository for running the model on Hera’s batch system
714-
(SLURM). It is located in ``ccpp-scm/scm/etc/scm_slurm_example.py``. Edit the ``job_name``, ``account``, etc. to suit your needs and
714+
(SLURM). Note, this is machine specific and might not be the optimal approach
715+
on other systems with different charging configurations.
716+
It is located in ``ccpp-scm/scm/etc/scm_slurm_example.py``. Edit the ``job_name``, ``account``, etc. to suit your needs and
715717
copy to the ``bin`` directory. The case name to be run is included in the ``command``
716718
variable. To use, invoke
717719

@@ -723,8 +725,7 @@ from the ``bin`` directory.
723725

724726
Additional details regarding the SCM may be found in the remainder of
725727
this guide. More information on the CCPP can be found in the CCPP
726-
Technical Documentation available at
727-
https://ccpp-techdoc.readthedocs.io/en/v7.0.0/.
728+
Technical Documentation available at https://ccpp-techdoc.readthedocs.io.
728729

729730
.. _docker:
730731

scm/doc/TechGuide/chap_repo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Cubed-Sphere (FV3) dynamical core.
4949
| ``│   │   └── vert_coord_data`` - Contains data to calculate vertical coordinates (from GSM-based GFS only)
5050
| ``│   ├── doc``
5151
| ``│   │   └── TechGuide`` - Contains source code and other files for this User’s/Technical Guide
52-
| ``│   ├── etc`` - Contains case configuration, machine setup scripts, and plotting scripts
52+
| ``│   ├── etc`` - Contains case configuration, machine setup scripts, and plotting scripts. These might be machine dependent and not all scripts are supported
5353
| ``│   │   ├── CENTOS_docker_setup.sh`` - Contains machine setup for Docker container
5454
| ``│   │   ├── case_config`` - Contains case configuration files
5555
| ``│   │   ├── modules`` - Contains module files for loading build environments on both pre-configured and custom platforms

0 commit comments

Comments
 (0)