Commit 42d0b4e3 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Typo in the dx_sort_max check for cell cj

parent 4ed1c86e
......@@ -924,7 +924,7 @@ void DOPAIR1(struct runner *r, struct cell *ci, struct cell *cj) {
p->x[1] * runner_shift[sid][1] +
p->x[2] * runner_shift[sid][2];
if (fabsf(d - sort_j[pjd].d) - cj->dx_max_sort >
1.0e-6 * max(fabsf(d), ci->dx_max_sort))
1.0e-6 * max(fabsf(d), cj->dx_max_sort))
error("particle shift diff exceeds dx_max_sort.");
}
#endif /* SWIFT_DEBUG_CHECKS */
......
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