diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-03-25 20:28:40 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-03-25 20:28:40 +0000 |
commit | 069e8f1d570cc373c843673be0acf7bc4dd10b6e (patch) | |
tree | e210e253ec96aeb6f3b708560ca1a32b339e8128 /src/include/cctk_Coord.h | |
parent | f74e867aab6e3a36824f5c33ed1d75bac90ef06f (diff) |
Allow setting parameter values at build time
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.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4989 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Coord.h')
0 files changed, 0 insertions, 0 deletions