diff --git a/src/cell.c b/src/cell.c index aa6ed761505c8c67fd869d25158d2a50a72d08b3..c9438aabdf850e4f1196a6f9f50fdb3105dce2cc 100644 --- a/src/cell.c +++ b/src/cell.c @@ -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 diff --git a/src/engine.c b/src/engine.c index af1d52c1f7664be5cd9fff7a5e57aae168c8c9ab..687093cace1c8b60e8abe02233adea86d18defb4 100644 --- a/src/engine.c +++ b/src/engine.c @@ -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); } } diff --git a/src/runner.c b/src/runner.c index d7edfe615a0b8b8958a32000123fd5f7040433f0..d296cb8aded2efae35e73cb7507ef6f4ff43a0db 100644 --- a/src/runner.c +++ b/src/runner.c @@ -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;