Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
msulprizio committed Sep 7, 2021
2 parents 99dd957 + aa10f3c commit b90e7b1
Show file tree
Hide file tree
Showing 16 changed files with 697 additions and 453 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.13)
project (gchp_ctm
VERSION 13.1.0
VERSION 13.2.0
LANGUAGES Fortran CXX C
)

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
<a href="https://spack.readthedocs.io/en/latest/package_list.html#gchp"><img src="https://img.shields.io/badge/Install%20with-Spack-ff69b4"></a>
<a href="https://github.com/geoschem/GCHP/releases"><img src="https://img.shields.io/github/v/release/geoschem/GCHP?include_prereleases&label=Latest%20Pre-Release"></a>

This is the GEOS-Chem High Performance (GCHP) source code. You can find the documentation here:
- **https://gchp.readthedocs.io/en/latest/**
The is the official repository for GEOS-Chem High Performance (GCHP).

If you aren't sure where to start, try starting with the [Quickstart Guide](https://gchp.readthedocs.io/en/latest/getting-started/quick-start.html).
:bulb: Documentation: https://gchp.readthedocs.io/en/latest/

:book: Publications: [GEOS-Chem on Google Scholar](https://scholar.google.com/citations?user=ho-sNj4AAAAJ)

:fast_forward: Quickstart guide: [here](https://gchp.readthedocs.io/en/latest/getting-started/quick-start.html)

### About GEOS-Chem

Expand Down
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
sphinx
sphinx_rtd_theme
sphinxcontrib-bibtex
recommonmark
recommonmark
docutils==0.16 # temporary fix for unordered lists not rendering properly
8 changes: 8 additions & 0 deletions docs/source/getting-started/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,11 @@ computational problems:

* Lots of storage. Several TB is sufficient, but tens or hundreds of TB is better.

Other Recommendations
^^^^^^^^^^^^^^^^^^^^^

* Hyper-threading may improve simulation throughput, particularly at low core counts
* MPI process should be bound sequentially across cores and nodes (e.g., a simulation with 48-processes with 24 processes per node
should bind rank 0 to CPU L#0, rank 1 to CPU L#1, etc. on the first node, and rank 24 to CPU L#0, rank 1 to CPU L#1, etc. on the
second node). This should be the default, but it's worth checking if your performance is lower than expected. With OpenMPI the
`--report-bindings` argument will show you how processes are ranked and binded.
453 changes: 10 additions & 443 deletions docs/source/supplement/config-files.rst

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/source/supplement/config-files/ExtData.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
ExtData.rc
==================

:file:`ExtData.rc` contains input variable and file read information for GCHP.
Explanatory information about the file is located at the top of the configuration file in all run directories.
The file format is the same as that used in the GEOS model, and GMAO/NASA documentation for it can be found at the ExtData component page on the GEOS-5 wiki.

The following two parameters are set at the top of the file:

Ext_AllowExtrat
Logical toggle to use data from nearest year available. This is set to true for GCHP. Note that GEOS-Chem Classic accomplishes the same effect but with more flexibility in :file:`HEMCO_Config.rc`. That functionality of :file:`HEMCO_Config.rc` is ignored in GCHP.

DEBUG_LEVEL
Turns MAPL ExtData debug prints on/off. This is set to 0 in GCHP (off), but may be set to 1 to enable. Beware that turning on ExtData debug prints greatly slows down the model, and prints are only done from the root thread. Use this when debugging problems with input files.

The rest of the file contains space-delimited lines, one for each variable imported to the model from an external file.
Columns are as follows in order as they appear left to right in the file:

Export Name
Name of imported met field (e.g. ALBD) or HEMCO emissions container name (e.g. GEIA_NH3_ANTH).

Units
Unit string nested within single quotes. '1' indicates there is no unit conversion from the native units in the netCDF file.
Clim
Enter Y if the file is a 12 month climatology, otherwise enter N. If you specify it is a climatology ExtData the data can be on either one file or 12 files if they are templated appropriately with one per month.
Conservative
Enter Y the data should be regridded in a mass conserving fashion through a tile file. :literal:`F;{VALUE}` can also be used for fractional regridding. Otherwise enter N to use the non-conervative bilinear regridding.

Refresh
Time Template Possible values include:

* -: The field will only be updated once the first time ExtData runs
* 0: Update the variable at every step. ExtData will do a linear interpolation to the current time using the available data.
* %y4-%m2-%h2T%h2:%n2:00: Set the recurring time to update the file. The file will be updated when the evaluated template changes. For example, a template in the form %y4-%m2-%d2T12:00:00 will cause the variable to be updated at the start of a new day (i.e. when the clock hits 2007-08-02T00:00:00 it will update the variable but the time it will use for reading and interpolation is 2007-08-02T12:00:00).

Offset Factor
Factor the variable will be shifted by. Use none for no shifting.

Scale Factor
Factor the variable will be scaled by. Use none for no scaling.

External File Variable
The name of the variable in the netCDF data file, e.g. ALBEDO in met fields.

External File Template
Path to the netCDF data file. If not using the data, specify :file:`/dev/null` to reduce processing time. If there are no tokens in the template name ExtData will assume that all the data is on one file. Note that if the data on file is at a different resolution that the application grid, the underlying I/O library ExtData uses will regrid the data to the application grid.
40 changes: 40 additions & 0 deletions docs/source/supplement/config-files/HEMCO.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

HEMCO_Config.rc, HEMCO_Diagn.rc
==================================

HEMCO_Config.rc
-----------------------

Like :file:`input.geos`, information about the :file:`HEMCO_Config.rc` file is the same as for GEOS-Chem Classic with a few exceptions.
Refer to the HEMCO documentation for an overview of the file.

Some content of the :file:`HEMCO_Config.rc` file is ignored by GCHP.
This is because MAPL ExtData handles file input rather than HEMCO in GCHP.

Items at the top of the file that are ignored include:

* ROOT data directory path
* METDIR path
* DiagnPrefix
* DiagnFreq
* Wildcard

In the BASE EMISSIONS section and beyond, columns that are ignored include:

* sourceFile
* sourceVar
* sourceTime
* C/R/E
* SrcDim
* SrcUnit

All of the above information is specified in file :file:`ExtData.rc` instead with the exception of diagnostic prefix and frequency. Diagnostic filename and frequency information is specified in :file:`HISTORY.rc`.

---------------------------------

HEMCO_Diagn.rc
-----------------------

Like in GEOS-Chem Classic, the :file:`HEMCO_Diagn.rc` file is used to map between HEMCO containers and output file diagnostic names.
However, while all uncommented diagnostics listed in :file:`HEMCO_Diagn.rc` are output as HEMCO diagnostics in GEOS-Chem Classic, only the subset also listed in :file:`HISTORY.rc` are output in GCHP.
See the HEMCO documentation for an overview of the file.

0 comments on commit b90e7b1

Please sign in to comment.