]> https://gitweb.dealii.org/ - dealii.git/commitdiff
more checks
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 16 Feb 2001 10:29:23 +0000 (10:29 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 16 Feb 2001 10:29:23 +0000 (10:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@3955 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/internals.cc

index aa5348954d1ac2dfdc0bebcecd3f6e0ee821eac9..ece08d9500284de0d774bd687b5f51c0c041e165 100644 (file)
@@ -27,14 +27,14 @@ check_support (FiniteElement<dim>& finel, const char* name)
   DoFHandler<dim> dof (tr);
   dof.distribute_dofs (finel);
 
+  cout << name << '<' << dim << '>' << " cell support points" << endl;
+  
   vector<Point<dim> > cell_points (finel.dofs_per_cell);
   vector<Point<dim> > face_points (finel.dofs_per_face);
   
   DoFHandler<dim>::active_cell_iterator cell = dof.begin_active();
   finel.get_support_points (cell, cell_points);
 
-  cout << name << '<' << dim << '>' << " cell support points" << endl;
-  
   for (unsigned int k=0;k<cell_points.size();++k)
     cout << setprecision(3) << cell_points[k] << endl;
   
@@ -66,31 +66,24 @@ check_matrices (FiniteElement<dim>& fe, const char* name)
 }
 
 
-#define CHECK_S(EL,dim) FE ## EL<dim> EL; check_support(EL, #EL);
-#define CHECK_M(EL,dim) FE ## EL<dim> EL; check_matrices(EL, #EL);
-#define CHECK_ALL(EL,dim) FE ## EL<dim> EL; check_support(EL, #EL); check_matrices(EL,#EL)
+#define CHECK_S(EL,dim) { FE ## EL<dim> EL; check_support(EL, #EL); }
+#define CHECK_M(EL,dim) { FE ## EL<dim> EL; check_matrices(EL, #EL); }
+#define CHECK_ALL(EL,dim) { FE ## EL<dim> EL; check_support(EL, #EL); check_matrices(EL,#EL); }
 
 int
 main()
 {
-  if (true)
-    {
-      CHECK_ALL(Q1,2);
-      CHECK_ALL(Q2,2);
-      CHECK_ALL(Q3,2);
-      CHECK_ALL(Q4,2);
-      CHECK_ALL(DG_Q0,2);
-      CHECK_ALL(DG_Q1,2);
-      CHECK_ALL(DG_Q2,2);
-      CHECK_ALL(DG_Q3,2);
-    }
-  if (true)
-    {
-      CHECK_ALL(Q1,3);
-      CHECK_ALL(Q2,3);
-      CHECK_ALL(DG_Q0,3);
-      CHECK_ALL(DG_Q1,3);
-    }
-  
+  CHECK_M(DG_Q0,2);
+  CHECK_M(DG_Q1,2);
+  CHECK_M(DG_Q2,2);
+  CHECK_M(DG_Q3,2);
+  CHECK_ALL(Q1,2);
+  CHECK_ALL(Q2,2);
+  CHECK_ALL(Q3,2);
+  CHECK_ALL(Q4,2);
+  CHECK_ALL(Q1,3);
+  CHECK_ALL(Q2,3);
+  CHECK_M(DG_Q0,3);
+  CHECK_M(DG_Q1,3);  
   return 0;
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.