Difference between revisions of "Downloading GCHP"
(→Step 4: Download Shared Data Directories) |
m |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | ---- | ||
+ | <span style="color:crimson;font-size:120%">'''The GCHP documentation has moved to https://gchp.readthedocs.io/.''' The GCHP documentation on http://wiki.seas.harvard.edu/ will stay online for several months, but it is outdated and no longer active!</span> | ||
+ | ---- | ||
+ | |||
__FORCETOC__ | __FORCETOC__ | ||
− | '''''[[ | + | '''''[[Setting Up the GCHP Environment|Previous]] | [[Compiling_GCHP|Next]] | [[Getting Started with GCHP]] | [[GCHP Main Page]]''''' |
#[[GCHP_Hardware_and_Software_Requirements|Hardware and Software Requirements]] | #[[GCHP_Hardware_and_Software_Requirements|Hardware and Software Requirements]] | ||
+ | #[[Setting_Up_the_GCHP_Environment|Setting Up the GCHP Environment]] | ||
#<span style="color:blue">'''Downloading Source Code and Data Directories'''</span> | #<span style="color:blue">'''Downloading Source Code and Data Directories'''</span> | ||
+ | #[[Compiling_GCHP|Compiling]] | ||
#[[Obtaining_a_GCHP_Run_Directory|Obtaining a Run Directory]] | #[[Obtaining_a_GCHP_Run_Directory|Obtaining a Run Directory]] | ||
− | |||
− | |||
#[[Running_GCHP:_Basics|Running GCHP: Basics]] | #[[Running_GCHP:_Basics|Running GCHP: Basics]] | ||
#[[Running_GCHP:_Configuration|Running GCHP: Configuration]] | #[[Running_GCHP:_Configuration|Running GCHP: Configuration]] | ||
Line 13: | Line 17: | ||
<br> | <br> | ||
− | == | + | ==Download GCHP== |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | GCHP source code is downloadable from GitHub at [https://github.com/geoschem/gchpctm https://github.com/geoschem/gchpctm]. As with any repository on GitHub, you can fork the project to your own GitHub account and then clone your fork to your local machine, or you may clone directly from the GCHP GitHub page. Assuming you are doing the latter, clone GCHP with the following command: | |
− | + | git clone https://github.com/geoschem/gchpctm.git Code.GCHP | |
− | git clone https://github.com/geoschem/ | + | |
− | + | When cloning GCHP you will get the main branch by default. | |
− | + | ==Fill git submodules== | |
− | + | GCHP includes many subdirectories that are themselves separate repositories on GitHub with their own version histories. These are stored in GCHP as git submodules and all of the git submodule folders will be empty when you first clone GCHP. To populate them you must enter a git command to update all submodules recursively, as follows: | |
− | + | cd Code.GCHP | |
+ | git submodule update --init --recursive | ||
− | + | This command accesses the submodule repository and commit information stored in GCHP and then populates the submodule directories by accessing GitHub. See file <tt>.gitmodules</tt> within the top-level GCHP directory for a list of git submodules within GCHP. | |
− | + | Please note that each GCHP commit may point to a different collection of git submodule commits. If you change GCHP versions, therefore, you should always reapply the git submodule update command. | |
− | == | + | ==Download data directories== |
− | + | GCHP uses the same collection of input files as GEOS-Chem Classic. See the [[Downloading_GEOS-Chem_data_directories | downloading GEOS-Chem data directories wiki page]] for more information. | |
− | + | Please be aware that new GEOS-Chem versions often require new input data as newer inventories become available. GEOS-Chem version wiki pages, e.g. [[GEOS-Chem_13.0.0|GEOS-Chem 13.0.0]], list new data directories in the version overview section at the top of the page. Pages for all versions can be accessed from the [[GEOS-Chem_versions|GEOS-Chem versions wiki page]]. | |
-------------------------------------- | -------------------------------------- | ||
− | '''''[[ | + | '''''[[Setting Up the GCHP Environment|Previous]] | [[Compiling_GCHP|Next]] | [[Getting Started with GCHP]] | [[GCHP Main Page]]''''' |
Latest revision as of 15:40, 8 December 2020
The GCHP documentation has moved to https://gchp.readthedocs.io/. The GCHP documentation on http://wiki.seas.harvard.edu/ will stay online for several months, but it is outdated and no longer active!
Previous | Next | Getting Started with GCHP | GCHP Main Page
- Hardware and Software Requirements
- Setting Up the GCHP Environment
- Downloading Source Code and Data Directories
- Compiling
- Obtaining a Run Directory
- Running GCHP: Basics
- Running GCHP: Configuration
- Output Data
- Developing GCHP
- Run Configuration Files
Download GCHP
GCHP source code is downloadable from GitHub at https://github.com/geoschem/gchpctm. As with any repository on GitHub, you can fork the project to your own GitHub account and then clone your fork to your local machine, or you may clone directly from the GCHP GitHub page. Assuming you are doing the latter, clone GCHP with the following command:
git clone https://github.com/geoschem/gchpctm.git Code.GCHP
When cloning GCHP you will get the main branch by default.
Fill git submodules
GCHP includes many subdirectories that are themselves separate repositories on GitHub with their own version histories. These are stored in GCHP as git submodules and all of the git submodule folders will be empty when you first clone GCHP. To populate them you must enter a git command to update all submodules recursively, as follows:
cd Code.GCHP git submodule update --init --recursive
This command accesses the submodule repository and commit information stored in GCHP and then populates the submodule directories by accessing GitHub. See file .gitmodules within the top-level GCHP directory for a list of git submodules within GCHP.
Please note that each GCHP commit may point to a different collection of git submodule commits. If you change GCHP versions, therefore, you should always reapply the git submodule update command.
Download data directories
GCHP uses the same collection of input files as GEOS-Chem Classic. See the downloading GEOS-Chem data directories wiki page for more information.
Please be aware that new GEOS-Chem versions often require new input data as newer inventories become available. GEOS-Chem version wiki pages, e.g. GEOS-Chem 13.0.0, list new data directories in the version overview section at the top of the page. Pages for all versions can be accessed from the GEOS-Chem versions wiki page.
Previous | Next | Getting Started with GCHP | GCHP Main Page