From 9b45716186e58e84bffeb5a7a64f332b565cd906 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Thu, 27 Jun 2019 18:12:14 +0300 Subject: [PATCH] Modified user.h such that astaroth compiles with Pencil Code. Note that this is a temporary fix: we should ultimately set the default parameters for all the logical switches in astaroth.h and let the user redefine them at will, either with the DSL or with user.h --- include/user.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/user.h b/include/user.h index c2075b4..39fc580 100644 --- a/include/user.h +++ b/include/user.h @@ -11,6 +11,12 @@ #else #define AC_DOUBLE_PRECISION 0 #endif + + #define LINDUCTION (LMAGNETIC) // TODO set default to 0 before including user.h + #define LENTROPY (1) // TODO above + #define LFORCING (1) // TODO above + #define STENCIL_ORDER (6) // nghost is not 1, 2 or 3 (as it is not fetched from fortran yet). This causes the compilation to fail. TODO remove this line + #define USER_PROVIDED_DEFINES #endif