diff --git a/src/engine.c b/src/engine.c index 289f488461f8fc7897f079c1e5d7431b5a78ac83..d6fb46f9c096c64ecd2f5dac456b1a3dbccd03db 100644 --- a/src/engine.c +++ b/src/engine.c @@ -3113,7 +3113,7 @@ void engine_maketasks(struct engine *e) { const size_t ext_grav_tasks_per_cell = 1; if (e->policy & engine_policy_hydro) - e->size_links += s->tot_cells * hydro_tasks_per_cell; + e->size_links += s->tot_cells * hydro_tasks_per_cell; if (e->policy & engine_policy_external_gravity) e->size_links += s->tot_cells * ext_grav_tasks_per_cell; if (e->policy & engine_policy_self_gravity) diff --git a/src/scheduler.c b/src/scheduler.c index fcc18825637e54bdfa7bb047642ec42b5be3bdd3..63dd9ef9239cebc4cc4b0147b8b31619576281f0 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -1219,11 +1219,9 @@ void scheduler_reweight(struct scheduler *s, int verbose) { cost = 2.f * (wscale * gcount_i) * gcount_j; } else { if (t->ci->nodeID != nodeID || t->cj->nodeID != nodeID) - cost = 3.f * (wscale * count_i) * count_j * - sid_scale[t->flags]; + cost = 3.f * (wscale * count_i) * count_j * sid_scale[t->flags]; else - cost = 2.f * (wscale * count_i) * count_j * - sid_scale[t->flags]; + cost = 2.f * (wscale * count_i) * count_j * sid_scale[t->flags]; } break; @@ -1232,14 +1230,12 @@ void scheduler_reweight(struct scheduler *s, int verbose) { if (t->flags < 0) cost = 3.f * (wscale * count_i) * count_j; else - cost = 3.f * (wscale * count_i) * count_j * - sid_scale[t->flags]; + cost = 3.f * (wscale * count_i) * count_j * sid_scale[t->flags]; } else { if (t->flags < 0) cost = 2.f * (wscale * count_i) * count_j; else - cost = 2.f * (wscale * count_i) * count_j * - sid_scale[t->flags]; + cost = 2.f * (wscale * count_i) * count_j * sid_scale[t->flags]; } break; @@ -1296,9 +1292,9 @@ void scheduler_reweight(struct scheduler *s, int verbose) { break; } - /* Note if the cost is > 1e9 we cap it as we don't - care. That's large compared to other possible - costs. */ +/* Note if the cost is > 1e9 we cap it as we don't + care. That's large compared to other possible + costs. */ #if defined(WITH_MPI) && defined(HAVE_METIS) t->cost = (cost < 1e9) ? cost : 1e9; #endif