From 2e47a1307e430b296d5f25ca9d9c7ea6e04875be Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Tue, 31 Oct 2017 14:34:22 +0000
Subject: [PATCH] Enclose constant in #ifdef.

---
 src/hydro/Gadget2/hydro_part.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/hydro/Gadget2/hydro_part.h b/src/hydro/Gadget2/hydro_part.h
index 111e9d75dc..724cb23a54 100644
--- a/src/hydro/Gadget2/hydro_part.h
+++ b/src/hydro/Gadget2/hydro_part.h
@@ -33,7 +33,9 @@
 
 #include "cooling_struct.h"
 
+#ifdef DEBUG_INTERACTIONS_SPH
 #define NUM_OF_NEIGHBOURS 128
+#endif
 
 /* Extra particle data not needed during the SPH loops over neighbours. */
 struct xpart {
-- 
GitLab