#1287: Allow setting parameters at build time
| Reporter: | Erik Schnetter |
| Status: | open |
| Milestone: | |
| Version: | |
| Type: | enhancement |
| Priority: | minor |
| Component: | Cactus |
Changes (by Roland Haas):
Allow setting parameter values at build time, enabling additional compiler optimisations. I measured that e.g. ML_BSSN runs 5% to 10% faster if its parameters are chosen at build time.
This introduces macros CCTK_PARAMETER__${thorn}__${parameter}. If unset, the parameter value is taken from the parameter file (default). If set at compile time, e.g. via a -D option in CPPFLAGS, this overrides the parameter database, and DECLARE_CCTK_PARAMETERS will always use this value.
Keyword:
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/1287/allow-setting-parameters-at-build-time