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

Post-merge fixes

parent e8f8b0c1
No related branches found
No related tags found
1 merge request!343Subset sorting
...@@ -1125,9 +1125,9 @@ void DOPAIR1_BRANCH(struct runner *r, struct cell *ci, struct cell *cj) { ...@@ -1125,9 +1125,9 @@ void DOPAIR1_BRANCH(struct runner *r, struct cell *ci, struct cell *cj) {
/* Have the cells been sorted? */ /* Have the cells been sorted? */
if (!(ci->sorted & (1 << sid)) || ci->dx_max_sort > space_maxreldx * ci->dmin) if (!(ci->sorted & (1 << sid)) || ci->dx_max_sort > space_maxreldx * ci->dmin)
runner_do_sort(r, ci, (1 << sid), 1); error("Interacting unsorted cells.");
if (!(cj->sorted & (1 << sid)) || cj->dx_max_sort > space_maxreldx * cj->dmin) if (!(cj->sorted & (1 << sid)) || cj->dx_max_sort > space_maxreldx * cj->dmin)
runner_do_sort(r, cj, (1 << sid), 1); error("Interacting unsorted cells.");
/* Have the cells been sorted? */ /* Have the cells been sorted? */
if (!(ci->sorted & (1 << sid)) || !(cj->sorted & (1 << sid))) if (!(ci->sorted & (1 << sid)) || !(cj->sorted & (1 << sid)))
...@@ -2672,8 +2672,8 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts, ...@@ -2672,8 +2672,8 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
/* Find out in which sub-cell of ci the parts are. */ /* Find out in which sub-cell of ci the parts are. */
struct cell *sub = NULL; struct cell *sub = NULL;
if (ci->split) if (ci->split) {
for (int k = 0; k < 8; k++) for (int k = 0; k < 8; k++) {
if (ci->progeny[k] != NULL) { if (ci->progeny[k] != NULL) {
if (&parts[ind[0]] >= &ci->progeny[k]->parts[0] && if (&parts[ind[0]] >= &ci->progeny[k]->parts[0] &&
&parts[ind[0]] < &ci->progeny[k]->parts[ci->progeny[k]->count]) { &parts[ind[0]] < &ci->progeny[k]->parts[ci->progeny[k]->count]) {
...@@ -2682,6 +2682,7 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts, ...@@ -2682,6 +2682,7 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
} }
} }
} }
}
/* Is this a single cell? */ /* Is this a single cell? */
if (cj == NULL) { if (cj == NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment