From 06a3da91358a6382b9d31a4af971d12381e2553f Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 9 Nov 2010 16:03:25 +0000 Subject: [PATCH] add outut to identify grid git-svn-id: https://svn.dealii.org/trunk@22647 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/lib/test_grids.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) 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; } /** -- 2.39.5