diff --git a/src/runner_doiact.h b/src/runner_doiact.h index d5120194c47862257e9a44ca4897f1e28c7bf2b2..473c0604ee60d755f8aef87a96a37bef30ca6279 100644 --- a/src/runner_doiact.h +++ b/src/runner_doiact.h @@ -1093,7 +1093,7 @@ void DOPAIR2(struct runner *r, struct cell *ci, struct cell *cj) { we are out of range of anything in ci (using the maximal hj). */ for (int pjd = 0; pjd < count_j && - sort_j[pjd].d - hj_max * kernel_gamma + dx_max < di_max - rshift; + sort_j[pjd].d - hj_max * kernel_gamma - dx_max < di_max - rshift; pjd++) { /* Get a hold of the jth part in cj. */