Commit 009a24cf authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent 55f9b74f
......@@ -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)
......
......@@ -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
......
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