Commit 28123d7d authored by Matthieu Schaller's avatar Matthieu Schaller

Also add the new task types to the partition decision making.

parent 0a0a27c4
......@@ -524,7 +524,7 @@ static void repart_edge_metis(int partweights, int bothweights, int nodeID,
t->type != task_type_sub_self && t->type != task_type_sub_self &&
t->type != task_type_ghost && t->type != task_type_kick1 &&
t->type != task_type_kick2 && t->type != task_type_timestep &&
t->type != task_type_drift)
t->type != task_type_drift_part && t->type != task_type_drift_gpart)
continue;
/* Get the task weight. */
......@@ -557,7 +557,7 @@ static void repart_edge_metis(int partweights, int bothweights, int nodeID,
/* Different weights for different tasks. */
if (t->type == task_type_ghost || t->type == task_type_kick1 ||
t->type == task_type_kick2 || t->type == task_type_timestep ||
t->type == task_type_drift) {
t->type == task_type_drift_part || t->type == task_type_drift_gpart) {
/* Particle updates add only to vertex weight. */
if (taskvweights) weights_v[cid] += w;
......
Markdown is supported
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