Skip to content
Snippets Groups Projects
Commit 0e44c517 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

When making a task 'none' in scheduler_split, make both t->ci and t->cj NULL...

When making a task 'none' in scheduler_split, make both t->ci and t->cj NULL to help with the debugging.
parent 8e0116a6
No related branches found
No related tags found
No related merge requests found
...@@ -568,6 +568,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) { ...@@ -568,6 +568,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) {
if (!is_self && !is_pair) { if (!is_self && !is_pair) {
t->type = task_type_none; t->type = task_type_none;
t->subtype = task_subtype_none; t->subtype = task_subtype_none;
t->ci = NULL;
t->cj = NULL; t->cj = NULL;
t->skip = 1; t->skip = 1;
break; break;
...@@ -767,6 +768,7 @@ static void scheduler_splittask_gravity(struct task *t, struct scheduler *s) { ...@@ -767,6 +768,7 @@ static void scheduler_splittask_gravity(struct task *t, struct scheduler *s) {
if ((t->ci == NULL) || (t->type == task_type_pair && t->cj == NULL)) { if ((t->ci == NULL) || (t->type == task_type_pair && t->cj == NULL)) {
t->type = task_type_none; t->type = task_type_none;
t->subtype = task_subtype_none; t->subtype = task_subtype_none;
t->ci = NULL;
t->cj = NULL; t->cj = NULL;
t->skip = 1; t->skip = 1;
break; break;
...@@ -912,6 +914,7 @@ static void scheduler_splittask_fof(struct task *t, struct scheduler *s) { ...@@ -912,6 +914,7 @@ static void scheduler_splittask_fof(struct task *t, struct scheduler *s) {
t->ci->grav.count == 0 || (t->cj != NULL && t->cj->grav.count == 0)) { t->ci->grav.count == 0 || (t->cj != NULL && t->cj->grav.count == 0)) {
t->type = task_type_none; t->type = task_type_none;
t->subtype = task_subtype_none; t->subtype = task_subtype_none;
t->ci = NULL;
t->cj = NULL; t->cj = NULL;
t->skip = 1; t->skip = 1;
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment