From: kanschat Date: Tue, 9 Nov 2010 16:03:25 +0000 (+0000) Subject: add outut to identify grid X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c99ee9c15b2db1e4ccce746b5a2650f47ed5e53d;p=dealii-svn.git add outut to identify grid git-svn-id: https://svn.dealii.org/trunk@22647 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lib/test_grids.h b/tests/lib/test_grids.h index 717435e10a..f5e44d56d7 100644 --- a/tests/lib/test_grids.h +++ b/tests/lib/test_grids.h @@ -64,15 +64,25 @@ namespace TestGrids tr.refine_global(refinement); if (refinement && local) { - for (typename Triangulation::active_cell_iterator - cell = tr.begin_active(); cell != tr.end(); ++cell) + tr.refine_global(1); + for (unsigned int i=1;i& p = cell->center(); - bool negative = true; - for (unsigned int d=0;d= 0.)negative = false; + for (typename Triangulation::active_cell_iterator + cell = tr.begin_active(); cell != tr.end(); ++cell) + { + const Point& p = cell->center(); + bool negative = true; + for (unsigned int d=0;d= 0.)negative = false; + } + tr.execute_coarsening_and_refinement(); } } + deallog << "Triangulation hypercube " << dim << "D refinement " << refinement; + if (local) + deallog << " local "; + deallog << " steps " << tr.n_active_cells() << " active cells " + << tr.n_cells() << " total cells " << std::endl; } /**