From: Ralf Hartmann Date: Tue, 1 Mar 2005 20:02:37 +0000 (+0000) Subject: Bug of unused vertices in MGDoFHandler is fixed. X-Git-Tag: v8.0.0~14575 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e998b1201d8843f71f3f3da247c1ce70af980c5;p=dealii.git Bug of unused vertices in MGDoFHandler is fixed. git-svn-id: https://svn.dealii.org/trunk@9933 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/mg_dof_handler.cc b/tests/deal.II/mg_dof_handler.cc new file mode 100644 index 0000000000..829a4a5763 --- /dev/null +++ b/tests/deal.II/mg_dof_handler.cc @@ -0,0 +1,56 @@ +//---------------------------- mg_dof_handler.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2000, 2001, 2003, 2004, 2005 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. +// +//---------------------------- mg_dof_handler.cc --------------------------- + + +/* Author: Ralf Hartmann, 2005 */ + +#include +#include +#include +#include +#include +#include +#include + +#include + + +int main () +{ + std::ofstream logfile("mg_dof_handler.output"); + logfile.precision(2); + + deallog.attach(logfile); + deallog.depth_console(0); + + const unsigned int dim=2; + Triangulation tria; + GridGenerator::hyper_cube(tria); + + FE_DGQ fe(1); + MGDoFHandler dof_handler(tria); + + tria.begin_active()->set_refine_flag(); + tria.execute_coarsening_and_refinement(); + + Triangulation::active_cell_iterator + cell=tria.begin_active(), + endc=tria.end(); + for (; cell!=endc; ++cell) + cell->set_coarsen_flag(); + tria.execute_coarsening_and_refinement(); + + dof_handler.distribute_dofs(fe); + + deallog << "OK" << std::endl; +}