]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test is now fixed.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 26 Sep 2009 00:54:02 +0000 (00:54 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 26 Sep 2009 00:54:02 +0000 (00:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@19570 0785d39b-7218-0410-832d-ea1e28bc413d

tests/hp/fe_nothing_01.cc
tests/hp/fe_nothing_01/cmp/generic

index bfdc0c7fa0537f06d4a010af5ed756fbc233aa6c..f762743498b73cf3f69a7fea2f35a7c2a45af3d2 100644 (file)
@@ -12,7 +12,8 @@
 //----------------------------  fe_nothing_01.cc  ---------------------------
 
 
-// test that FE_Nothing works as intended
+// test that FE_Nothing works as intended: we used to abort in the
+// computation of face domination relationships
 
 
 #include "../tests.h"
@@ -40,8 +41,8 @@ template <int dim>
 void test ()
 {
   Triangulation<dim>       triangulation;
-  GridGenerator :: hyper_cube (triangulation, -0.5, 0.5);
-  triangulation.refine_global(4);
+  GridGenerator :: hyper_cube (triangulation, 0, 1);
+  triangulation.refine_global(1);
 
   hp::FECollection<dim>    fe_collection;
   fe_collection.push_back (FE_Q<dim>(1));
@@ -60,7 +61,7 @@ void test ()
   for(; cell != endc; cell++)
     {
       Point<dim> center = cell->center();
-      if( std::sqrt(center.square()) < 0.25 )
+      if( std::sqrt(center.square()) < 0.5 )
        cell->set_active_fe_index(1);
       else
        cell->set_active_fe_index(0);
@@ -68,12 +69,9 @@ void test ()
 
                                   // Attempt to distribute dofs.
                                   // Fails here with assertion from
-                                  // hp_vertex_dof_identities().
-                                  // Seems this function expects all
-                                  // elements to be of type FE_Q, and
-                                  // therefore have dofs at the cell
-                                  // vertices.
-
+                                  // hp_vertex_dof_identities() and
+                                  // after that is fixed in face
+                                  // domination computation.
   dof_handler.distribute_dofs (fe_collection);
 
   deallog << "   Number of active cells:       "
index 0fd8fc12f0b442283edd8868867114c242b04d11..34d04cfe64dbd468982e6a99c885116b9d61ed57 100644 (file)
@@ -1,2 +1,8 @@
 
+DEAL::   Number of active cells:       2
+DEAL::   Number of degrees of freedom: 2
+DEAL::   Number of active cells:       4
+DEAL::   Number of degrees of freedom: 8
+DEAL::   Number of active cells:       8
+DEAL::   Number of degrees of freedom: 26
 DEAL::OK

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.