MIT-LAE / APCEMM

Aircraft Plume Chemistry, Emissions, and Microphysics Model
MIT License
7 stars 16 forks source link

Added debug options for reproducibility #18

Closed lrobion closed 1 month ago

lrobion commented 2 months ago

To make regression testing possible we need APCEMM to generate deterministic results. There are two sources of "non-deterministicness" in APCEMM right now: the random temperature perturbations and multi-threading.

This PR adds a compilation option to:

This is documented in the README for compiling in this mode as well as for compiling the binary with debug instructions.

Also untracks APCEMM.h which is regenerated every compilation by CMake using the APCEMM.h.in template as it changes depending on if the -DDEBUG flag is on.