NDMeshStreamer: added CkAbort in determineLocation if destinationPe
[charm.git] / src / libs / ck-libs / NDMeshStreamer / NDMeshStreamer.h
index 3da57443534174cdc3e21fb8bb6a138947f07b7e..0316f2b85f5cf57b55504f523e795866b4e34181 100644 (file)
@@ -404,10 +404,8 @@ MeshLocation MeshStreamer<dtype>::determineLocation(int destinationPe) {
     remainder -= combinedDimensionSizes_[i] * dimensionIndex;
   }
 
     remainder -= combinedDimensionSizes_[i] * dimensionIndex;
   }
 
-  // all indices agree - message to oneself
-  destinationLocation.dimension = 0; 
-  destinationLocation.bufferIndex = myLocationIndex_[0];
-  return destinationLocation; 
+  CkAbort("Error. MeshStreamer::determineLocation called with destinationPe "
+          "equal to sender's PE. This is unexpected and may cause errors.\n"); 
 }
 
 template <class dtype>
 }
 
 template <class dtype>