Added test for serial mesh-splitting routines.
authorOrion Lawlor <olawlor@acm.org>
Tue, 30 Apr 2002 16:03:18 +0000 (16:03 +0000)
committerOrion Lawlor <olawlor@acm.org>
Tue, 30 Apr 2002 16:03:18 +0000 (16:03 +0000)
tests/fem/femtest/pgm.C

index 1d3f1977b69f888ef1536bf54416faed77e9ab19..4e718942f4166aafd7fc77e1cafe1b9e44a32f89 100644 (file)
@@ -113,6 +113,20 @@ init(void)
   delete[] nodes;
   delete[] elements;
   delete[] noData;
+
+#if 0 //Test out the serial split routines
+  int nchunks=10;
+  printf("Splitting into %d pieces:\n");
+  FEM_Serial_Split(nchunks);
+  for (int i=0;i<nchunks;i++) {
+    FEM_Serial_Begin(i);
+    int node,elem,ignored;
+    FEM_Get_Node(&node,&ignored);
+    FEM_Get_Elem(0,&elem,&ignored,&ignored);
+    printf(" partition[%d] has %d nodes, %d elems\n",i,node,elem);
+  }
+  FEM_Done();
+#endif
 }
 
 typedef struct _node {