Compiling GEOS-Chem

From Geos-chem
Jump to: navigation, search

Previous | Next | Getting Started with GEOS-Chem

  1. Minimum system requirements
  2. Configuring your computational environment
  3. Downloading source code
  4. Downloading data directories
  5. Creating run directories
  6. Configuring runs
  7. Compiling
  8. Running
  9. Output files
  10. Visualizing and processing output
  11. Coding and debugging
  12. Further reading


Overview

GEOS-Chem and GCHP use two build systems to compile source code files into an executable file:

  1. GNU Make
  2. CMake

At present, both GEOS-Chem "Classic" and GCHP use GNU Make. CMake will soon replace GNU Make in both GEOS-Chem "Classic" and GCHP.

--Bob Yantosca (talk) 22:11, 20 December 2019 (UTC)

Which versions can use GNU Make and which can use CMake?

GEOS-Chem "Classic" compatibility matrix

Some GEOS-Chem "Classic" versions are compatible with both CMake and GNU Make, as shown below.

GEOS-Chem "Classic" version Uses GNU Make? Uses CMake?
12.5.0 and prior YES NO
12.6.0 YES YES
12.6.1 YES YES
12.6.2 YES YES
12.6.3 YES YES
12.7.0 (release early 2020) YES YES
12.8.* (release TBD) YES YES
12.9.* (release TBD) YES YES
13.0.0 (release TBD) and later NO YES

--Bob Yantosca (talk) 18:09, 13 December 2019 (UTC)

GCHP compatibility matrix

Unlike GEOS-Chem "Classic", GCHP will have a "hard" transition from GNU Make to CMake in 13.0.0:

GCHP version Uses GNU Make? Uses CMake?
12.5.0 and prior YES NO
12.6.0 YES NO
12.6.1 YES NO
12.6.2 YES NO
12.6.3 YES NO
12.7.0 (release early 2020) YES NO
12.8.* (release TBD) YES NO
12.9.* (release TBD) YES NO
13.0.0 (release TBD) and later NO YES

--Bob Yantosca (talk) 21:51, 20 December 2019 (UTC)

References

  1. GNU Make Manual
  2. Mecklenburg, Robert, Managing Projects with GNU Make, Third Edition,, O'Reilly and Associates, 2004.
  3. CMake FAQ by Liam Bindle
  4. CMake tutorial (cmake.org)
  5. Learn X in Y minutes (where X is CMake)

--Bob Yantosca (talk) 21:58, 20 December 2019 (UTC)



Previous | Next | Getting Started with GEOS-Chem