From 6d2be634d7c6bf7af305245b7e075f1a1b79a5f9 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Mon, 14 Sep 2020 13:27:56 +0300 Subject: [PATCH] Simulation.cc sets LBFIELD (1) only if BFIELDX has been defined in the DSL --- samples/standalone/simulation.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/standalone/simulation.cc b/samples/standalone/simulation.cc index 2452594..0bf193e 100644 --- a/samples/standalone/simulation.cc +++ b/samples/standalone/simulation.cc @@ -44,7 +44,11 @@ // NEED TO BE DEFINED HERE. IS NOT NOTICED BY compile_acc call. #define LFORCING (0) #define LSINK (0) +#ifdef BFIELDX #define LBFIELD (1) +#else +#define LBFIELD (0) +#endif // Write all setting info into a separate ascii file. This is done to guarantee // that we have the data specifi information in the thing, even though in