From d26b0fc0155eb0f4ae21a68f6b329f9c8e57a18d Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 26 Sep 2017 16:04:24 +0100
Subject: [PATCH] Removed debugging lines tracking a particle through the
 long-range gravity forces.

---
 src/const.h              |  2 --
 src/runner_doiact_grav.h | 13 -------------
 2 files changed, 15 deletions(-)

diff --git a/src/const.h b/src/const.h
index bfa0d61107..c8060a2be5 100644
--- a/src/const.h
+++ b/src/const.h
@@ -113,6 +113,4 @@
 #define SOURCETERMS_NONE
 //#define SOURCETERMS_SN_FEEDBACK
 
-//#define ICHECK -30896
-
 #endif /* SWIFT_CONST_H */
diff --git a/src/runner_doiact_grav.h b/src/runner_doiact_grav.h
index 6eb9baad20..5d4de609eb 100644
--- a/src/runner_doiact_grav.h
+++ b/src/runner_doiact_grav.h
@@ -1130,19 +1130,6 @@ void runner_doself_grav(struct runner *r, struct cell *c, int gettimer) {
  */
 void runner_do_grav_long_range(struct runner *r, struct cell *ci, int timer) {
 
-#if ICHECK > 0
-  for (int pid = 0; pid < ci->gcount; pid++) {
-
-    /* Get a hold of the ith part in ci. */
-    struct gpart *restrict gp = &ci->gparts[pid];
-
-    if (gp->id_or_neg_offset == ICHECK)
-      message("id=%lld loc=[ %f %f %f ] size= %f count= %d",
-              gp->id_or_neg_offset, ci->loc[0], ci->loc[1], ci->loc[2],
-              ci->width[0], ci->gcount);
-  }
-#endif
-
   /* Some constants */
   const struct engine *e = r->e;
   const struct space *s = e->s;
-- 
GitLab