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

formatting.

parent 83de0627
......@@ -1265,8 +1265,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
error("bad flags in sort task.");
#endif
scheduler_activate(s, ci->sorts);
if (ci->nodeID == engine_rank)
scheduler_activate(s, ci->drift);
if (ci->nodeID == engine_rank) scheduler_activate(s, ci->drift);
}
if (!(cj->sorted & (1 << t->flags))) {
#ifdef SWIFT_DEBUG_CHECKS
......@@ -1274,8 +1273,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
error("bad flags in sort task.");
#endif
scheduler_activate(s, cj->sorts);
if (cj->nodeID == engine_rank)
scheduler_activate(s, cj->drift);
if (cj->nodeID == engine_rank) scheduler_activate(s, cj->drift);
}
}
......@@ -1307,7 +1305,6 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if (l == NULL) error("Missing link to send_xv task.");
scheduler_activate(s, l->t);
if (l->t->ci->drift)
scheduler_activate(s, l->t->ci->drift);
else
......
......@@ -2497,8 +2497,7 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
error("bad flags in sort task.");
#endif
scheduler_activate(s, ci->sorts);
if (ci->nodeID == engine_rank)
scheduler_activate(s, ci->drift);
if (ci->nodeID == engine_rank) scheduler_activate(s, ci->drift);
}
if (!(cj->sorted & (1 << t->flags))) {
#ifdef SWIFT_DEBUG_CHECKS
......@@ -2506,8 +2505,7 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
error("bad flags in sort task.");
#endif
scheduler_activate(s, cj->sorts);
if (cj->nodeID == engine_rank)
scheduler_activate(s, cj->drift);
if (cj->nodeID == engine_rank) scheduler_activate(s, cj->drift);
}
}
......
......@@ -1405,7 +1405,7 @@ void runner_do_recv_part(struct runner *r, struct cell *c, int timer) {
timebin_t time_bin_min = num_time_bins;
timebin_t time_bin_max = 0;
float h_max = 0.f;
/* Clear this cell's sorted mask. */
c->sorted = 0;
......
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