diff --git a/src/runner_doiact_stars.h b/src/runner_doiact_stars.h index ab448ea3b0eec16a2d62ce2782b95ed23395471e..54a49f0e493a1830776e42b93c5bca351b4593e3 100644 --- a/src/runner_doiact_stars.h +++ b/src/runner_doiact_stars.h @@ -100,6 +100,9 @@ void DOSELF1_STARS(struct runner *r, struct cell *c, int timer) { /* Get a hold of the ith spart in ci. */ struct spart *restrict si = &sparts[sid]; + if (!spart_is_active(si, e) || spart_is_inhibited(si, e)) + continue; + const float hi = si->h; const float hig2 = hi * hi * kernel_gamma2; const float six[3] = {(float)(si->x[0] - c->loc[0]), @@ -180,6 +183,8 @@ void DO_NONSYM_PAIR1_STARS(struct runner *r, struct cell *restrict ci, /* Get a hold of the ith spart in ci. */ struct spart *restrict si = &sparts_i[sid]; + if (!spart_is_active(si, e) || spart_is_inhibited(si, e)) + continue; const float hi = si->h; const float hig2 = hi * hi * kernel_gamma2; const float six[3] = {(float)(si->x[0] - (cj->loc[0] + shift[0])),