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
Branches
Tags
1 merge request!303MPI send/recv fixes for inactive cells
......@@ -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_init) && t->ci->nodeID != s->nodeID)) {
t->type = task_type_none;
t->subtype = task_subtype_none;
t->cj = NULL;
t->skip = 1;
break;
}
......@@ -1083,6 +1085,8 @@ void scheduler_start(struct scheduler *s) {
struct cell *ci = t->ci;
struct cell *cj = t->cj;
if (t->type == task_type_none) continue;
/* Don't check MPI stuff */
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