Commit fba0dd79 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

formatting.

parent 5bb19409
......@@ -290,12 +290,10 @@ void runner_do_sort_ascending(struct entry *sort, int N) {
}
void runner_check_sorts(struct cell *c, int flags) {
if (flags & ~c->sorted)
error("Inconsistent sort flags (downward)!");
if (flags & ~c->sorted) error("Inconsistent sort flags (downward)!");
if (c->split)
for (int k = 0; k < 8; k++)
if (c->progeny[k] != NULL)
runner_check_sorts(c->progeny[k], c->sorted);
if (c->progeny[k] != NULL) runner_check_sorts(c->progeny[k], c->sorted);
}
/**
......@@ -327,9 +325,9 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int clock) {
runner_check_sorts(c, c->sorted);
/* Make sure the sort flags are consistent (upard). */
for (struct cell *finger = c->parent; finger != NULL; finger = finger->parent) {
if (finger->sorted & ~c->sorted)
error("Inconsistent sort flags (upward).");
for (struct cell *finger = c->parent; finger != NULL;
finger = finger->parent) {
if (finger->sorted & ~c->sorted) error("Inconsistent sort flags (upward).");
}
#endif
......@@ -500,9 +498,9 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int clock) {
runner_check_sorts(c, flags);
/* Make sure the sort flags are consistent (upward). */
for (struct cell *finger = c->parent; finger != NULL; finger = finger->parent) {
if (finger->sorted & ~c->sorted)
error("Inconsistent sort flags.");
for (struct cell *finger = c->parent; finger != NULL;
finger = finger->parent) {
if (finger->sorted & ~c->sorted) error("Inconsistent sort flags.");
}
#endif
......
......@@ -605,7 +605,8 @@ void DOPAIR_SUBSET(struct runner *r, struct cell *restrict ci,
sid = sortlistID[sid];
/* Have the cells been sorted? */
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) {
DOPAIR_SUBSET_NAIVE(r, ci, parts_i, ind, count, cj);
return;
}
......
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