Commit e5d24a2e authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Add check to make sure that foreign cells do not have xparts

This would have revealed the last MPI bug a but quicker
parent 0199eaa8
......@@ -462,6 +462,10 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int cleanup,
/* Reset the sort distance */
if (c->sorted == 0) {
if (xparts != NULL && c->nodeID != engine_rank)
error("Have non-NULL xparts in foreign cell");
/* And the individual sort distances if we are a local cell */
if (xparts != NULL) {
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