Commit 0b3df5fe authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only use debugging variables when debugging

parent 2f5cf547
......@@ -357,10 +357,11 @@ 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)){
#ifdef SWIFT_DEBUG_CHECKS
gp->mass_interacted += l->mass_interacted;
#endif
//}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment