From: Wolfgang Bangerth Date: Wed, 26 Apr 2006 03:53:40 +0000 (+0000) Subject: Add new test that presently fails X-Git-Tag: v8.0.0~11869 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d74faf982f232a46a27314ba3f258fe0cb354cbd;p=dealii.git Add new test that presently fails git-svn-id: https://svn.dealii.org/trunk@12901 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/hp/Makefile b/tests/hp/Makefile index 1f9a74bafc..f3cbd0d937 100644 --- a/tests/hp/Makefile +++ b/tests/hp/Makefile @@ -25,7 +25,8 @@ tests_x = hp_dof_handler \ crash_* \ q_collection_* \ mapping_collection_* \ - fe_collection_* + fe_collection_* \ + continuous_2d_* # from above list of regular expressions, generate the real set of # tests diff --git a/tests/hp/continuous_2d_01.cc b/tests/hp/continuous_2d_01.cc new file mode 100644 index 0000000000..822ef61ffa --- /dev/null +++ b/tests/hp/continuous_2d_01.cc @@ -0,0 +1,75 @@ +//---------------------------- continuous_2d_01.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2005, 2006 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------- continuous_2d_01.cc --------------------------- + + +// check hp::DoFHandler<2>::reserve_space for continuous elements, but +// where we use the same element on all cells + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + + + +template +void test () +{ + Triangulation tria; + GridGenerator::hyper_cube(tria); + tria.refine_global (2); + tria.begin_active()->set_refine_flag (); + tria.execute_coarsening_and_refinement (); + tria.refine_global (1); + + const hp::FECollection fe_collection (FE_Q (1)); + + hp::DoFHandler dof_handler(tria); + dof_handler.distribute_dofs(fe_collection); + + std::vector local_dof_indices (fe_collection[0].dofs_per_cell); + for (typename hp::DoFHandler::active_cell_iterator + cell=dof_handler.begin_active(); + cell!=dof_handler.end(); ++cell) + { + cell->get_dof_indices (local_dof_indices); + + deallog << cell << std::endl; + for (unsigned int i=0; i (); + + deallog << "OK" << std::endl; +}