Added some optionally compiled code for Abhinav to be able to print out shared node...
authorIsaac Dooley <idooley2@illinois.edu>
Wed, 7 Nov 2007 18:07:32 +0000 (18:07 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Wed, 7 Nov 2007 18:07:32 +0000 (18:07 +0000)
balancer. You need to explicitly enable this code, it is not compiled in by default.

src/libs/ck-libs/ParFUM/mesh.C

index a8471e69ad5b90fdc9abd3dc071b3f5401be4c81..b907fbbb46d44a4045f24b6512c78e1ce8889731 100644 (file)
@@ -2126,6 +2126,27 @@ FEM_Mesh *FEM_readMesh(const char *prefix,int chunkNo,int nChunks)
        PUP::fromTextFile p(fp);
        ret->pup(p);
        fclose(fp);
+
+
+
+#ifdef PRINT_SHARED_NODE_INFO
+        /** For Abhinav, print out the neighbors for this vp */
+        
+        CkPrintf("%d: Finding Neighbors for VP\n", chunkNo);
+        
+        FEM_Comm &shared = ret->node.shared; ///<Shared nodes     The type is really an IDXL_Side
+        
+        int numNeighborVPs = shared.size();
+        
+        CkPrintf("%d: communicates with %d neighbors\n", chunkNo, numNeighborVPs);
+        
+        for(int i=0;i<numNeighborVPs;i++){
+          IDXL_List list = shared.getLocalList(i);
+            CkPrintf("%d: communicates %d shared nodes with chunk %d\n", chunkNo , list.size() , list.getDest()); 
+        }
+#endif
+
+
        return ret;
 }