diff --git a/src/multipole.h b/src/multipole.h
index f166a6078b16ec0ef297217ab1c19e8071bf8d16..95b7450cd9c7aa60dba5c43ebd3c77e6316845a5 100644
--- a/src/multipole.h
+++ b/src/multipole.h
@@ -357,11 +357,13 @@ INLINE static void gravity_L2P(const struct gravity_tensors *l,
 
   for (int i = 0; i < gcount; ++i) {
 
+#ifdef SWIFT_DEBUG_CHECKS
     struct gpart *gp = &gparts[i];
 
-    // if(gpart_is_active(gp, e)){
+// if(gpart_is_active(gp, e)){
 
     gp->mass_interacted += l->mass_interacted;
+#endif
     //}
   }
 }