Skip to content

Commit

Permalink
Merge pull request #1756 from ESMCI/bertinia/doc
Browse files Browse the repository at this point in the history
documentation updates
  • Loading branch information
bertinia authored Jul 22, 2017
2 parents 2e46704 + 2dcec90 commit bb9c6f0
Show file tree
Hide file tree
Showing 23 changed files with 903 additions and 39 deletions.
File renamed without changes.
7 changes: 4 additions & 3 deletions doc/source/build_cpl/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
#####################################
Building a Coupled Model with CIME
#####################################
#######################################################################
CIME User's Guide Part 3: Advanced - Building a Coupled Model with CIME
#######################################################################

.. toctree::
:maxdepth: 3
:numbered:

introduction.rst
adding-components.rst

Indices and tables
==================
Expand Down
4 changes: 3 additions & 1 deletion doc/source/build_cpl/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Introduction

Content to go here:

How to replace an existing cime model with another one,
How to add a new component model to cime.

How to replace an existing cime model with another one.

How to integrate your model in to the cime build/configure system and coupler.

Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath('../...'))
sys.path.insert(0, os.path.abspath('~/cime'))


# -- General configuration ------------------------------------------------
Expand Down
16 changes: 0 additions & 16 deletions doc/source/glossary.rst

This file was deleted.

171 changes: 171 additions & 0 deletions doc/source/glossary/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
.. _glossary:

########
Glossary
########

.. toctree::
:maxdepth: 1
:numbered:

*********
General
*********

.. glossary::

active or prognostic component
Solves a complex set of equations to describe a sub-model’s behavior.

case (CASE)
An instance of a global climate model simulation. A case is defined by a component set, a model grid,
a machine, a compiler, and any other additional customizations.

component
A sub-model coupled with other components to constitute a global climate modeling system.
Example components: atmosphere, ocean, land, etc.

component set (COMPSET)
A complete set of components to be linked together into a climate model to
run a specific case.

data component
Replacement for an active component. Sends and receives the same variables to and from other
models (but ignores the variables received).

grid (GRID)
A set of numerical grids of a case. Each active component operates on its own numerical grid.

resolution
Used to refer to a set of grids. Each grid within a set may have different resolution.

stub component
Simply occupies the required place in the climate execution sequence and does send or receive
any data.

*********
Coupling
*********

.. glossary::

coupler
A component of the CIME infrastructure that is run from within the driver. It can be run on a
subset of the total processors, and carries out mapping (interpolation), merging, diagnostics, and other
calculations.

driver
The hub that connects all components. CIME driver runs on all hardware processors, runs the top
level instructions, and, executes the driver time loop.

forcing
An imposed perturbation of Earth's energy balance

Model Coupling Toolkit or MCT
A library used by CIME for all data rearranging and mapping (interpolation)

mask
Determines land/ocean boundaries in the model

mapping
Interpolation of fields between components.

*********************
Files and Directories
*********************

.. glossary::

archive directory (DOUT_S_ROOT)
If short term archiving is activated (DOUT_S = TRUE), the restart files and run output files
are copied to archive directory location (DOUT_S_ROOT).

build directory (EXEROOT)
Location where the case is built.

case root (CASEROOT)
The directory where the case is created. Includes namelist files, xml files, and scripts to setup,
build, and run the case. Also, includes logs and timing output files.

CIME root (CIMEROOT)
The directory where the CIME source code resides

history files
NetCDF files that contain fields associated with the state of the model at a given time slice.

initial files
Files required to start a file

input data stream (DIN_LOC_ROOT)
A time-series of input data files where all the fields in the stream are located in the
same data file and all share the same spatial and temporal coordinates.

namelist files
Each namelist file includes input parameters for a specific component.

run directory (RUNDIR)
Where the case is run.

restart files
Written and read by each component in the RUNDIR to stop and subsequently restart in a bit-for-bit fashion.

rpointer files
Text file written by the coupler in the RUNDIR with a list of necessary files required for model restart.

XML files
Elements and attributes in these files configure a case. (building, running, batch, etc.) These files
include env_archive.xml, env_batch.xml, env_build.xml, env_case.xml, env_mach_pes.xml, env_mach_specific.xml, env_run.xml
in CASEROOT and can be queried and modifed using the xmlquery and xmlchange tools.

***********
Development
***********

.. glossary::

sandbox (SRCROOT)
A checked out tag on a local or a remote machine. may be edited to create a new tag. or, may
just be used for running cases.

source modifications (CASEROOT/SourceMods)
one or more source files that are modified by the user. Before building a case, CIME replaces
the original source files with these files.

tag
A snapshot of the source code. With each consecutive tag (one or more) answer-changing modifications
to the source code of a component are introduced.

user namelist files (CASEROOT/user_nl_*)
User modifications for a given case can be specified in these files.

********
Testing
********

.. glossary::

baseline
A set of test cases that is run using a tag which is complete, tested, and has no modifications
in the source code. Used to assess the performance/accuracy of a case that is run using a sandbox.

baseline failure
A test that fails in its comparison with a baseline.

blessing
Part of the unit testing framework used by CIME scripts regression tests.

regression test
A test that compares with baseline results to determine if any new errors have been introduced
into the code base.

unit testing
A fast, self-verifying test of a small piece of code.

*************
Miscellaneous
*************

.. glossary::

ESP
External System Processing: handles data assimilation
14 changes: 6 additions & 8 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
CIME documentation
==================

The Common Infrastructure for Modeling the Earth (CIME - pronounced "SEEM") provides a UNIX command-line-based interface for
The Common Infrastructure for Modeling the Earth (CIME - pronounced "SEAM") provides a UNIX command-line-based interface for
configuring, compiling and executing Earth system models.

Table of contents
Expand All @@ -21,16 +21,14 @@ Table of contents
data_models/index.rst
driver_cpl/index.rst
misc_tools/index.rst
glossary.rst
glossary/index.rst
xml_files/index.rst

Indices, Glossary and Search
----------------------------
Addendum
---------

* :ref:`genindex`
* :ref:`modindex`
* :ref:`glossary`
* :ref:`search`

* :ref:`xml_files`

CIME is developed by the
`ACME <https://climatemodeling.science.energy.gov/projects/accelerated-climate-modeling-energy>`_ and
Expand Down
6 changes: 2 additions & 4 deletions doc/source/users_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. _users-guide1:

#################################################
CIME User's Guide Part 1: Beginner - Basic Usage
CIME User's Guide Part 1: Beginner - Basic Usage
#################################################

.. toctree::
Expand All @@ -28,7 +27,7 @@
.. _users-guide2:

#######################################################################################
CIME User's Guide Part 2: Intermediate - CIME internals, Porting, Testing and Use Cases
CIME User's Guide Part 2: Intermediate - CIME Internals, Porting, Testing and Use Cases
#######################################################################################

.. toctree::
Expand All @@ -43,7 +42,6 @@ CIME User's Guide Part 2: Intermediate - CIME internals, Porting, Testing and Us
multi-instance.rst
adding-cases.rst
use_cases/use-cases.rst
adding-components.rst

Indices and tables
==================
Expand Down
8 changes: 2 additions & 6 deletions doc/source/what_cime/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:maxdepth: 3
:numbered:

CIME, pronounced "SEEM", contains the support scripts (configure,
CIME, pronounced "SEAM", contains the support scripts (configure,
build, run, test), data models, essential utility libraries, a “main”
and other tools that are needed to build a single-executable coupled
Earth System Model. CIME is available in a stand-alone package that
Expand Down Expand Up @@ -64,10 +64,6 @@ CIME is an open-source, public repository hosted under the Earth
System Model Computational Infrastructure (ESMCI) organization on
Github at http://github.com/ESMCI/cime.

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`


65 changes: 65 additions & 0 deletions doc/source/xml_files/acme.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.. _acme:

#################################
CIME ACME Coupled Model XML Files
#################################

XML files for ACME in CIMEROOT/config/acme.

.. toctree::
:maxdepth: 1

********************
CIMEROOT/config/acme
********************

ACME XML settings for short term archiver.

.. literalinclude:: ../../../config/acme/config_archive.xml

ACME XML settings for defining CASEROOT env_*.xml file entries.

.. literalinclude:: ../../../config/acme/config_files.xml

ACME XML settings for defining supported grids.

.. literalinclude:: ../../../config/acme/config_grids.xml


******************************
CIMEROOT/config/acme/allactive
******************************

ACME XML settings for all-active component set (compset) configurations.

.. literalinclude:: ../../../config/acme/allactive/config_compsets.xml

ACME XML settings for all-active test configurations.

.. literalinclude:: ../../../config/acme/allactive/testlist_allactive.xml

ACME XML settings for optimized processor elements (PEs) layout configurations.

.. literalinclude:: ../../../config/acme/allactive/config_pesall.xml


*****************************
CIMEROOT/config/acme/machines
*****************************

ACME XML settings for supported batch queuing systems.

.. literalinclude:: ../../../config/acme/machines/config_batch.xml

ACME XML settings for supported compilers.

.. literalinclude:: ../../../config/acme/machines/config_compilers.xml

ACME XML settings for supported machines.

.. literalinclude:: ../../../config/acme/machines/config_machines.xml

ACME XML settings for Parallel Input/Output (PIO) library.

.. literalinclude:: ../../../config/acme/machines/config_pio.xml

Loading

0 comments on commit bb9c6f0

Please sign in to comment.