Skip to content

How to compile AtChem2

R. Sommariva edited this page Jul 2, 2019 · 12 revisions

Atchem2 is compiled using the script build.sh in the tools/ directory. The script takes 3 or 4 arguments, depending on the version of AtChem2, which must be provided in the correct order.

version 1.1.*

The script build.sh takes 4 arguments:

  1. path to the chemical mechanism file (.fac)
  2. path to the auto-generated Fortran files directory - default: src/gen/
  3. path to the model configuration directory - default: model/configuration/
  4. path to the MCM data files directory - default: mcm/
./tools/build.sh ./model/mechanism.fac ./src/gen/ ./model/configuration/ ./mcm/

version 1.0 and earlier

The script build.sh takes 3 arguments:

  1. path to the chemical mechanism file (.fac)
  2. path to the Fortran source files directory - default: src/
  3. path to the model configuration directory - default: modelConfiguration/
./tools/build.sh ./mechanism.fac ./src/ ./modelConfiguration/
Clone this wiki locally