]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Test has_support_on_face
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Oct 2002 19:58:35 +0000 (19:58 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Oct 2002 19:58:35 +0000 (19:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@6700 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/fe_data_test.cc

index 41c28cc7b899c972b377f1ac475a4749f3ba0ac2..dda34b058b781c68465e7c5e7a7aefb91cc6122c 100644 (file)
@@ -28,6 +28,7 @@ void test_fe_datas()
 {
   std::vector<FiniteElement<dim> *> fe_datas;
   fe_datas.push_back(new FE_Q<dim> (1));
+  fe_datas.push_back(new FE_Q<dim> (2));
   fe_datas.push_back(new FE_Q<dim> (4));
   fe_datas.push_back(new FESystem<dim>(FE_Q<dim> (2), 2));
   fe_datas.push_back(new FESystem<dim>(FE_Q<dim> (1), 2,
@@ -75,6 +76,15 @@ void test_fe_datas()
       deallog << "dofs_per_face=" << fe_data->dofs_per_face << std::endl;
       deallog << "dofs_per_cell=" << fe_data->dofs_per_cell << std::endl;
       deallog << "components=" << fe_data->components << std::endl;
+
+      for (unsigned int f=0;f<GeometryInfo<dim>>faces_per_cell;++f)
+       {
+         deallog << "support on face " << f << ':';
+         for (unsigned int s=0;s<fe_data->dofs_per_cell;++s)
+           if (fe_datas[n]->has_support_on_face(s, f))
+             deallog << '\t' << s;
+         deallog << std::endl;
+       }
     }
 
                                   // delete all FiniteElementDatas

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.