Skip to content
Snippets Groups Projects
Commit 4057a8a6 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add sort tasks to foreign cells as well.

parent 977dfd83
Branches
Tags
1 merge request!343Subset sorting
......@@ -161,6 +161,10 @@ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c) {
/* Are we in a super-cell ? */
if (c->super == c) {
/* Add the sort task. */
c->sorts =
scheduler_addtask(s, task_type_sort, task_subtype_none, 0, 0, c, NULL);
/* Local tasks only... */
if (c->nodeID == e->nodeID) {
......@@ -168,10 +172,6 @@ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c) {
c->drift_part = scheduler_addtask(s, task_type_drift_part,
task_subtype_none, 0, 0, c, NULL);
/* Add the sort task. */
c->sorts = scheduler_addtask(s, task_type_sort, task_subtype_none, 0, 0,
c, NULL);
/* Add the two half kicks */
c->kick1 = scheduler_addtask(s, task_type_kick1, task_subtype_none, 0, 0,
c, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment