From 26ecd35bd3a907296ba3387deb677aad40919b4f Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Wed, 8 Mar 2017 10:27:52 +0000 Subject: [PATCH] Code formatting --- src/multipole.h | 2 +- src/runner.c | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/multipole.h b/src/multipole.h index 95b7450cd9..b5c9335ee8 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 4c499af218..6448f21d41 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); } } -- GitLab