diff --git a/src/runner.c b/src/runner.c index c1ac634eb752798005d551994a9306e3075052bc..bd0bf01a1e4dcdc5e4f3ceff50c54cc060fe8511 100644 --- a/src/runner.c +++ b/src/runner.c @@ -3098,7 +3098,10 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) { else { /* part is inactive */ /* Count the number of inhibited particles */ - if (part_is_inhibited(p, e)) inhibited++; + if (part_is_inhibited(p, e)) { + inhibited++; + continue; + } const integertime_t ti_end = get_integer_time_end(ti_current, p->time_bin); @@ -3167,7 +3170,10 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) { } else { /* gpart is inactive */ /* Count the number of inhibited particles */ - if (gpart_is_inhibited(gp, e)) g_inhibited++; + if (gpart_is_inhibited(gp, e)) { + g_inhibited++; + continue; + } const integertime_t ti_end = get_integer_time_end(ti_current, gp->time_bin); @@ -3226,7 +3232,10 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) { } else { /* Count the number of inhibited particles */ - if (spart_is_inhibited(sp, e)) ++s_inhibited; + if (spart_is_inhibited(sp, e)) { + ++s_inhibited; + continue; + } const integertime_t ti_end = get_integer_time_end(ti_current, sp->time_bin); @@ -3288,7 +3297,10 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) { } else { /* Count the number of inhibited particles */ - if (bpart_is_inhibited(bp, e)) ++b_inhibited; + if (bpart_is_inhibited(bp, e)) { + ++b_inhibited; + continue; + } const integertime_t ti_end = get_integer_time_end(ti_current, bp->time_bin);