Commit eb1d3499 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Applied @jwillis' correction to the second loop of DOPAIR2. dx_max was...

Applied @jwillis' correction to the second loop of DOPAIR2. dx_max was entering the external loop with the wrong sign.
parent bb14c7b4
......@@ -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. */
......
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