Linked the defines used by the DSL and astaroth.h. Now f.ex. LENTROPY has to be set only once in acc/mhd_solver/stencil_defines.h and it is propagated throughout the whole project. The name for stencil_defines.h is not final and may change if I come up with a better name. In any case, there is now a standard header associated with each DSL solver where the user can set defines, and declare arrays (VTXBUF_LNRHO) and device constants (uniforms).

This commit is contained in:
jpekkila
2019-07-01 18:37:56 +03:00
parent 9a87053f26
commit b8869bb848
5 changed files with 18 additions and 13 deletions

View File

@@ -69,14 +69,7 @@ extern "C" {
// clang-format off
#ifndef USER_PROVIDED_DEFINES
#define STENCIL_ORDER (6)
#define NGHOST (STENCIL_ORDER / 2)
#define LDENSITY (1)
#define LHYDRO (1)
#define LMAGNETIC (1)
#define LENTROPY (1)
#define LTEMPERATURE (0)
#define LFORCING (1)
#include "acc/mhd_solver/stencil_defines.h" // TODO: this should be in a standard location
#endif
// clang-format on