STEllAR-GROUP / octotiger

Astrophysics program simulating the evolution of star systems based on the fast multipole method on adaptive Octrees
http://octotiger.stellar-group.org/
Boost Software License 1.0
48 stars 17 forks source link

Print git information during Octo-Tiger startup #445

Closed G-071 closed 1 year ago

G-071 commented 1 year ago

This commit adds the functionality to store the current git commit hash (and message) from the source directory during into preprocessor macros during the CMake step. These are in turn printed on stdout during the Octo-Tiger startup, easing reproducibility.

This commit also adds a reproducibility warning if the source directory contained uncommitted changes during the CMake step.

This directly addresses the feature request in #435