Skip to content

Commit ba51d5e

Browse files
committed
Merge branch 'master' into darwin
2 parents 06eeee8 + 9366435 commit ba51d5e

File tree

140 files changed

+14117
-5634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+14117
-5634
lines changed

.github/workflows/build_testing.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- exp: "offline_exf_seaice"
1515
precs: "16 16 16 16 16 16 16 16 16"
1616
- exp: "global_ocean.cs32x15"
17-
precs: "16 16 16 16 16"
17+
precs: "16 16 16 16 16 16"
1818
- exp: "tutorial_deep_convection"
1919
precs: "16 16"
2020
- exp: "aim.5l_cs"
@@ -93,7 +93,7 @@ jobs:
9393
9494
openad-other:
9595
runs-on: ubuntu-latest
96-
if: ${{ contains(github.event.pull_request.labels.*.name, 'adjoint') }}
96+
if: ${{ contains(github.event.pull_request.labels.*.name, 'adjoint') }}
9797

9898
strategy:
9999
matrix:

doc/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
autodoc_mock_imports = ['matplotlib', 'mpl_toolkits']
4343

44+
bibtex_bibfiles = ['manual_references.bib']
45+
4446
# Add any paths that contain templates here, relative to this directory.
4547
templates_path = ['_templates']
4648

doc/contributing/contributing.rst

+35-19
Original file line numberDiff line numberDiff line change
@@ -1417,36 +1417,52 @@ cause difficulty).
14171417
Building the manual
14181418
-------------------
14191419

1420-
Once you've made your changes to the manual, you should build it locally to verify that it works as expected.
1421-
To do this you will need a working python installation with the following packages installed:
1420+
Once you've made your changes to the manual, you should build it locally to
1421+
verify that it works as expected. To do this you will need a working python
1422+
installation with the following packages installed:
14221423

14231424
- sphinx
14241425
- sphinxcontrib-bibtex
14251426
- sphinxcontrib-programoutput
14261427
- sphinx_rtd_theme
14271428
- numpy
14281429

1429-
There are many tools available to create a python environment with these packages on your local machine (e.g., using ``pip install``)
1430-
and if you are comfortable doing so on your own, go ahead. Note that as of this writing (December 2020), sphinxcontrib-bibtex versions
1431-
2.0.0 and higher are not supported (we suggest using version 1.0.0).
1432-
1433-
However, if you are new to python, or less experienced, we suggest the following steps:
1434-
1435-
#. Get miniforge from https://github.com/conda-forge/miniforge/#download (for linux, win, or mac). Follow the instructions
1436-
to run the installer from a terminal window. Make sure to say "yes" when it asks to initialize Miniforge3 -- that way
1437-
you can use it right away. This is a minimal anaconda with conda-forge already set as default.
1438-
#. Install MITgcm doc requirements:
1430+
These packages can be installed from the Python Package Index using pip. If you
1431+
have an existing python installation using `Anaconda
1432+
<https://www.anaconda.com/>`_ or one of its variants (e.g., `miniconda
1433+
<https://docs.conda.io/en/latest/miniconda.html>`_), we recommend that you can
1434+
create (and use) a clean environment with the required packages like this:
14391435

14401436
::
14411437

14421438
cd MITgcm
1443-
conda install --file doc/requirements.txt
1444-
1445-
Once these modules are installed you can build the html version of the manual by running ``make html`` in the ``doc`` directory.
1446-
1447-
To build the pdf version of the manual you will also need a working version of LaTeX that includes
1448-
`several packages <http://www.sphinx-doc.org/en/master/usage/builders/index.html#sphinx.builders.latex.LaTeXBuilder>`_ that are
1449-
not always found in minimal LaTeX installations. The command to build the pdf version is ``make latexpdf``, which should also be run in the ``doc`` directory.
1439+
conda create --name mitgcm_build_the_docs --channel conda-forge --file doc/requirements.txt
1440+
conda activate mitgcm_build_the_docs
1441+
[...] # do the work
1442+
conda deactivate
1443+
1444+
If you don't yet have a python installation on your computer, we recommend
1445+
following the `Anaconda installation procedure
1446+
<https://www.anaconda.com/products/individual#Downloads>`_, then following the
1447+
recipe above. You do not need to learn python to build the manual; just note
1448+
you should type ``conda activate mitgcm_build_the_docs`` in a shell when
1449+
starting up a manual editing session, and ``conda deactivate`` when you finish
1450+
(also note you only need to perform the ``conda create ...`` step above when
1451+
you **initially** follow the recipe). This will maintain a clean, separate
1452+
python `virtual environment
1453+
<https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_
1454+
for manual compilation and won't interfere with your python setup should you
1455+
decide to learn python in the future.
1456+
1457+
Once these modules are installed you can build the html version of the manual
1458+
by running ``make html`` in the ``doc`` directory.
1459+
1460+
To build the pdf version of the manual you will also need a working version of
1461+
LaTeX that includes `several packages
1462+
<http://www.sphinx-doc.org/en/master/usage/builders/index.html#sphinx.builders.latex.LaTeXBuilder>`_
1463+
that are not always found in minimal LaTeX installations. The command to build
1464+
the pdf version is ``make latexpdf``, which should also be run in the ``doc``
1465+
directory.
14501466

14511467
.. _sec_pullreq:
14521468

doc/examples/global_oce_biogeo/global_oce_biogeo.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ The input fields needed for this run (in
170170
many tracers are used, and :varlink:`PTRACERS_Iter0` which states at which
171171
timestep the biogeochemistry model tracers were initialized.
172172

173-
- ``depth_g77.bin``: bathymetry data file
173+
- ``bathy.bin``: bathymetry data file
174174

175175
- :filelink:`input/eedata <verification/tutorial_global_oce_biogeo/input/eedata>`: This file uses standard default values and does not
176176
contain customizations for this experiment.
Loading

0 commit comments

Comments
 (0)