Prepare the executable:

3. Prepare the executable:#

CHIMERE is a large Fortran 90 code that must be compiled before running. Compilation can be done either manually or automatically.

If you are using the CIF for the first time on your cluster, it is recommended to check manually that compilation works correctly. With manual compilation, the executable can be built once outside the CIF and stored in a reference directory for later reuse.

Warning

CHIMERE is a research code under active development. Its source code may change to fix bugs or add new features. If a previously working CHIMERE case breaks after a pyCIF update, force a recompilation of the executables.

3.1. Manual compilation#

Detailed instructions are given here.

In directory model_sources/chimereGES, compile the Fortran chemistry-transport model:

./compile_chimere -m D

Option -m D compiles the forward code.

To start from scratch in case of a previous compilation:

./compile_chimere -m D -d N -c Y

Option -d N disables debug mode.

⟹ Verify that an executable named fwdchimere.e (approximately 2.5 MB) appears in sub-directory src.

3.2. Automatic compilation#

The CIF can also compile CHIMERE automatically when needed. To enable this, specify the auto-recompile option (along with compile-mode and compile-clean) in the model plugin in the YAML (see Model (model) for details). No manual preparation of the executable is required in this case.