From f66f8ce652ea78ba2f00bc803284897f0916a7c8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 26 Sep 2009 00:54:02 +0000 Subject: [PATCH] Test is now fixed. git-svn-id: https://svn.dealii.org/trunk@19570 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/hp/fe_nothing_01.cc | 18 ++++++++---------- tests/hp/fe_nothing_01/cmp/generic | 6 ++++++ 2 files changed, 14 insertions(+), 10 deletions(-) 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 -- 2.39.5