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

Skip none tasks when checking for scheduled stuff. Clean-up more properties of none tasks.

parent 44e733cb
No related branches found
No related tags found
1 merge request!303MPI send/recv fixes for inactive cells
...@@ -138,6 +138,8 @@ static void scheduler_splittask(struct task *t, struct scheduler *s) { ...@@ -138,6 +138,8 @@ static void scheduler_splittask(struct task *t, struct scheduler *s) {
((t->type == task_type_timestep) && t->ci->nodeID != s->nodeID) || ((t->type == task_type_timestep) && t->ci->nodeID != s->nodeID) ||
((t->type == task_type_init) && t->ci->nodeID != s->nodeID)) { ((t->type == task_type_init) && t->ci->nodeID != s->nodeID)) {
t->type = task_type_none; t->type = task_type_none;
t->subtype = task_subtype_none;
t->cj = NULL;
t->skip = 1; t->skip = 1;
break; break;
} }
...@@ -1083,6 +1085,8 @@ void scheduler_start(struct scheduler *s) { ...@@ -1083,6 +1085,8 @@ void scheduler_start(struct scheduler *s) {
struct cell *ci = t->ci; struct cell *ci = t->ci;
struct cell *cj = t->cj; struct cell *cj = t->cj;
if (t->type == task_type_none) continue;
/* Don't check MPI stuff */ /* Don't check MPI stuff */
if (t->type == task_type_send || t->type == task_type_recv) continue; if (t->type == task_type_send || t->type == task_type_recv) continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment