Skip to content
Snippets Groups Projects
Commit cb0b4486 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch 'no_sort_self_dependency' into 'master'

Remove unnecessary dependency between sort and self/density tasks.

See merge request !461
parents b1fff331 57e1b89b
No related branches found
No related tags found
1 merge request!461Remove unnecessary dependency between sort and self/density tasks.
...@@ -2279,9 +2279,8 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements, ...@@ -2279,9 +2279,8 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements,
/* Self-interaction? */ /* Self-interaction? */
else if (t->type == task_type_self && t->subtype == task_subtype_density) { else if (t->type == task_type_self && t->subtype == task_subtype_density) {
/* Make all density tasks depend on the drift and the sorts. */ /* Make the self-density tasks depend on the drift only. */
scheduler_addunlock(sched, t->ci->super->drift_part, t); scheduler_addunlock(sched, t->ci->super->drift_part, t);
scheduler_addunlock(sched, t->ci->super->sorts, t);
#ifdef EXTRA_HYDRO_LOOP #ifdef EXTRA_HYDRO_LOOP
/* Start by constructing the task for the second and third hydro loop. */ /* Start by constructing the task for the second and third hydro loop. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment