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
...@@ -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;
......
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