diff --git a/src/multipole.h b/src/multipole.h index 95b7450cd9c7aa60dba5c43ebd3c77e6316845a5..b5c9335ee8fabf46740cefe310fcfecbea3fd77e 100644 --- a/src/multipole.h +++ b/src/multipole.h @@ -360,7 +360,7 @@ INLINE static void gravity_L2P(const struct gravity_tensors *l, #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 diff --git a/src/runner.c b/src/runner.c index 4c499af2186eec9dbf026b27757ff0d719a94182..6448f21d41e307a33a0eaae7f2f486f1fdcd3fd9 100644 --- a/src/runner.c +++ b/src/runner.c @@ -1352,9 +1352,9 @@ void runner_do_end_force(struct runner *r, struct cell *c, int timer) { struct part *restrict p = &parts[k]; if (part_is_active(p, e)) { - - /* First, finish the force loop */ - hydro_end_force(p); + + /* First, finish the force loop */ + hydro_end_force(p); if (p->gpart != NULL) gravity_end_force(p->gpart, const_G); } } @@ -1367,8 +1367,7 @@ void runner_do_end_force(struct runner *r, struct cell *c, int timer) { if (gp->type == swift_type_dark_matter) { - if (gpart_is_active(gp, e)) gravity_end_force(gp, const_G); - + if (gpart_is_active(gp, e)) gravity_end_force(gp, const_G); } #ifdef SWIFT_DEBUG_CHECKS @@ -1390,8 +1389,8 @@ void runner_do_end_force(struct runner *r, struct cell *c, int timer) { struct spart *restrict sp = &sparts[k]; if (spart_is_active(sp, e)) { - /* First, finish the force loop */ - star_end_force(sp); + /* First, finish the force loop */ + star_end_force(sp); gravity_end_force(sp->gpart, const_G); } }