Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!343Subset sorting
...@@ -462,6 +462,10 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int cleanup, ...@@ -462,6 +462,10 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int cleanup,
/* Reset the sort distance */ /* Reset the sort distance */
if (c->sorted == 0) { if (c->sorted == 0) {
#ifdef SWIFT_DEBUG_CHECKS
if (xparts != NULL && c->nodeID != engine_rank)
error("Have non-NULL xparts in foreign cell");
#endif
/* And the individual sort distances if we are a local cell */ /* And the individual sort distances if we are a local cell */
if (xparts != NULL) { if (xparts != NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment