From: bangerth Date: Sat, 26 Sep 2009 00:54:02 +0000 (+0000) Subject: Test is now fixed. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb40fc0d6e536cb550219cf3ac6eb0a9d59f6d1f;p=dealii-svn.git Test is now fixed. git-svn-id: https://svn.dealii.org/trunk@19570 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/hp/fe_nothing_01.cc b/tests/hp/fe_nothing_01.cc index bfdc0c7fa0..f762743498 100644 --- a/tests/hp/fe_nothing_01.cc +++ b/tests/hp/fe_nothing_01.cc @@ -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 void test () { Triangulation 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 fe_collection; fe_collection.push_back (FE_Q(1)); @@ -60,7 +61,7 @@ void test () for(; cell != endc; cell++) { Point 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: " diff --git a/tests/hp/fe_nothing_01/cmp/generic b/tests/hp/fe_nothing_01/cmp/generic index 0fd8fc12f0..34d04cfe64 100644 --- a/tests/hp/fe_nothing_01/cmp/generic +++ b/tests/hp/fe_nothing_01/cmp/generic @@ -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