How to compile AtChem2 - AtChem/AtChem2 GitHub Wiki
AtChem2 is compiled using a build script, called build/build_atchem2.sh from version 1.2 and tools/build.sh in previous versions. Depending on the version of AtChem2, the build script takes 3 or 4 positional arguments (i.e., the arguments must be provided in a precise order). The build script must be run from the Main Directory (e.g., $HOME/AtChem2/), where it creates the atchem2 executable.
For more information, see the AtChem2 manual in the doc/ directory.
version 1.2.* and later
build_atchem2.sh has 3 positional arguments:
- path to the chemical mechanism file (
.fac) - path to the model configuration directory - default:
model/configuration/ - path to the MCM data files directory - default:
mcm/
./build/build_atchem2.sh ./model/mechanism.fac ./model/configuration/ ./mcm/
version 1.1.*
build.sh has 4 positional arguments:
- path to the chemical mechanism file (
.fac) - path to the auto-generated Fortran files directory - default:
src/gen/ - path to the model configuration directory - default:
model/configuration/ - 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
build.sh has 3 positional arguments:
- path to the chemical mechanism file (
.fac) - path to the Fortran source files directory - default:
src/ - path to the model configuration directory - default:
modelConfiguration/
./tools/build.sh ./mechanism.fac ./src/ ./modelConfiguration/