Added (default-on) test for -1's in elem2type array, which is
authorOrion Lawlor <olawlor@acm.org>
Tue, 11 Jun 2002 18:17:17 +0000 (18:17 +0000)
committerOrion Lawlor <olawlor@acm.org>
Tue, 11 Jun 2002 18:17:17 +0000 (18:17 +0000)
how FEM_Add_Ghost_Layer deals with variable-size tuples.

tests/fem/femtest/pgm.C

index 2cc4d083ca34d18931a60b75e2809740ba3093c6..d42dc9c4d1291161f4f947f6075771d8adc7349f 100644 (file)
@@ -126,9 +126,15 @@ init(void)
      FEM_Add_Ghost_Elem(0,4,quad2node);
   } else if (1) 
   { /*Match edges*/
+#if 1 /*Include ignored "-1" nodes as a test*/
+     static const int quad2edge[]= {0,1,-1,  1,2,-1,  2,3,-1,  3,0,-1};
+     FEM_Add_Ghost_Layer(3,1);
+     FEM_Add_Ghost_Elem(0,4,quad2edge);
+#else
      static const int quad2edge[]= {0,1,  1,2,  2,3,  3,0};
      FEM_Add_Ghost_Layer(2,1);
      FEM_Add_Ghost_Elem(0,4,quad2edge);
+#endif
 /*Add a second layer
      FEM_Add_Ghost_Layer(2,0);
      FEM_Add_Ghost_Elem(0,4,quad2edge);