Skip to content
Snippets Groups Projects
Commit c40c0b5a authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected a bug in iact_self_direct() that erased all previously computed accelerations.

parent c2d8003c
No related branches found
No related tags found
No related merge requests found
......@@ -1491,7 +1491,7 @@ void iact_self_direct(struct cell *c) {
/* Copy the local particle data back. */
for (k = 0; k < count; k++) {
for (j = 0; j < 3; j++) c->parts[k].a[j] = parts[k].a[j];
for (j = 0; j < 3; j++) c->parts[k].a[j] += parts[k].a[j];
}
} /* otherwise, compute interactions directly. */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment