From b9760d6d9ac311be5c61b9e24378dece210dd9cf Mon Sep 17 00:00:00 2001
From: Jacob Kegerreis <jacob.kegerreis@durham.ac.uk>
Date: Mon, 14 May 2018 16:03:28 +0100
Subject: [PATCH] Undo same-position error check

---
 src/runner_doiact_grav.h | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/src/runner_doiact_grav.h b/src/runner_doiact_grav.h
index 76584141d2..45184e88f5 100644
--- a/src/runner_doiact_grav.h
+++ b/src/runner_doiact_grav.h
@@ -707,16 +707,6 @@ static INLINE void runner_doself_grav_pp_full(struct runner *r,
     swift_align_information(float, ci_cache->m, SWIFT_CACHE_ALIGNMENT);
     swift_assume_size(gcount_padded, VEC_SIZE);
 
-//      int index = -gparts[pid].id_or_neg_offset;    ///###
-//      if (e->s->parts[index].id == 7708) {    ///###
-//        message("a");
-//        printParticle_single(&e->s->parts[index],  &e->s->xparts[index]);
-//      }
-//      if (e->s->parts[index].id == 7727) {    ///###
-//        message("b");
-//        printParticle_single(&e->s->parts[index],  &e->s->xparts[index]);
-//      }
-
     /* Loop over every other particle in the cell. */
     for (int pjd = 0; pjd < gcount_padded; pjd++) {
 
@@ -735,19 +725,6 @@ static INLINE void runner_doself_grav_pp_full(struct runner *r,
       const float dz = z_i - z_j;
       const float r2 = dx * dx + dy * dy + dz * dz;
 
-      if (r2 == 0) {    ///###
-        message("Particles at identical positions!");
-
-        int index;
-        index = -gparts[pid].id_or_neg_offset;
-        printParticle_single(&e->s->parts[index],  &e->s->xparts[index]);
-
-        index = -gparts[pjd].id_or_neg_offset;
-        printParticle_single(&e->s->parts[index],  &e->s->xparts[index]);
-
-        error("");
-      }
-
 #ifdef SWIFT_DEBUG_CHECKS
       if (r2 == 0.f && h2_i == 0.)
         error("Interacting particles with 0 distance and 0 softening.");
-- 
GitLab