From 009a24cfeab93ee023a6c2d5cede5a2e4542a07f Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Thu, 28 Jun 2018 14:22:04 +0100 Subject: [PATCH] Code formatting --- src/engine.c | 2 +- src/scheduler.c | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/engine.c b/src/engine.c index 289f488461..d6fb46f9c0 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 fcc1882563..63dd9ef923 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 -- GitLab