Commit 6fcd9386 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add a check before sending particles to make sure they've been drifted.

parent d87df577
......@@ -1219,6 +1219,11 @@ void scheduler_enqueue(struct scheduler *s, struct task *t) {
MPI_BYTE, t->cj->nodeID, t->flags, MPI_COMM_WORLD,
} else {
for (int k = 0; k < t->ci->count; k++)
if (t->ci->parts[k].ti_drift != s->space->e->ti_current)
error("Sending un-drifted particle !");
err = MPI_Isend(t->ci->parts, t->ci->count, part_mpi_type,
t->cj->nodeID, t->flags, MPI_COMM_WORLD, &t->req);
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