Commit 38ec5e44 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correct linking of the gradient communication task.

parent 5efa68ae
......@@ -153,7 +153,7 @@ void engine_addtasks_send_hydro(struct engine *e, struct cell *ci,
scheduler_addunlock(s, t_gradient, ci->super->kick2);
scheduler_addunlock(s, t_gradient, ci->hydro.super->hydro.end_force);
scheduler_addunlock(s, ci->hydro.super->hydro.extra_ghost, t_gradient);
......@@ -169,7 +169,7 @@ void engine_addtasks_send_hydro(struct engine *e, struct cell *ci,
/* The send_rho task should unlock the super_hydro-cell's kick task. */
scheduler_addunlock(s, t_rho, ci->super->end_force);
scheduler_addunlock(s, t_rho, ci->hydro.super->hydro.end_force);
/* The send_rho task depends on the cell's ghost task. */
scheduler_addunlock(s, ci->hydro.super->hydro.ghost_out, t_rho);
......@@ -680,7 +680,12 @@ void task_get_group_name(int type, int subtype, char *cluster) {
strcpy(cluster, "Density");
case task_subtype_gradient:
strcpy(cluster, "Gradient");
if (type == task_type_send || type == task_type_recv) {
strcpy(cluster, "None");
else {
strcpy(cluster, "Gradient");
case task_subtype_force:
strcpy(cluster, "Force");
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