NDMeshStreamer: added CkAbort in determineLocation if destinationPe
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Wed, 23 May 2012 19:54:42 +0000 (14:54 -0500)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Wed, 23 May 2012 19:54:42 +0000 (14:54 -0500)
is the same as sender's PE.

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;
   }
 
-  // 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>