]> https://gitweb.dealii.org/ - dealii.git/commitdiff
check new projection matrices
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 19 Jul 2005 11:58:05 +0000 (11:58 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 19 Jul 2005 11:58:05 +0000 (11:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@11179 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/internals.cc

index 00211a681ff5a4a6526ea078b1e543ba381314f5..e0a6109365aadc0f35d34b8d9b0891ca31c873d5 100644 (file)
@@ -93,9 +93,11 @@ check_matrices (FiniteElement<dim>& fe, const char* name)
   for (unsigned int i=0;i<GeometryInfo<dim>::children_per_cell;++i)
     {
       deallog << name << '<' << dim << '>' << " restriction " << i << std::endl;
-      print_formatted (fe.get_restriction_matrix(i), 3, 6);
+      if (fe.restriction_is_implemented())
+       print_formatted (fe.get_restriction_matrix(i), 3, 6);
       deallog << name << '<' << dim << '>' << " embedding " << i << std::endl;
-      print_formatted (fe.get_prolongation_matrix(i), 3, 6);
+      if (fe.prolongation_is_implemented())
+       print_formatted (fe.get_prolongation_matrix(i), 3, 6);
     }
 }
 
@@ -130,11 +132,11 @@ main()
                                    // DGP elements presently have no
                                    // restriction matrices, so cannot
                                    // be tested
-//   CHECK_M(DGP,0,2);
-//   CHECK_M(DGP,1,2);
-//   CHECK_M(DGP,2,2);
-//   CHECK_M(DGP,3,2);
-//   CHECK_M(DGP,4,2);
+  CHECK_M(DGP,0,2);
+  CHECK_M(DGP,1,2);
+  CHECK_M(DGP,2,2);
+  CHECK_M(DGP,3,2);
+  CHECK_M(DGP,4,2);
 
   CHECK_ALL(Q,1,2);
   CHECK_ALL(Q,2,2);
@@ -149,9 +151,9 @@ main()
   CHECK_M(DGQ,2,3);
 
                                    // see above
-//   CHECK_M(DGP,0,3);
-//   CHECK_M(DGP,1,3);
-//   CHECK_M(DGP,2,3);
+  CHECK_M(DGP,0,3);
+  CHECK_M(DGP,1,3);
+  CHECK_M(DGP,2,3);
 
   CHECK_ALL(Q,1,3);
   CHECK_ALL(Q,2,3);

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.