Commit 26ecd35b authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent 379c619c
......@@ -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
......
......@@ -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);
}
}
......
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