From fadde9d0b501d347a2f6049dacb76ed402222a32 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 18 Aug 2008 21:56:16 +0000 Subject: [PATCH] Check in correct output. git-svn-id: https://svn.dealii.org/trunk@16590 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fail/mesh_smoothing_02.cc | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tests/fail/mesh_smoothing_02.cc b/tests/fail/mesh_smoothing_02.cc index 175c570e38..f256873a93 100644 --- a/tests/fail/mesh_smoothing_02.cc +++ b/tests/fail/mesh_smoothing_02.cc @@ -77,7 +77,26 @@ void test () for (unsigned int i=0; i<4; ++i) triangulation.begin(1)->child(i)->set_refine_flag (); triangulation.execute_coarsening_and_refinement (); - + + deallog << "n_active_cells = " << triangulation.n_active_cells() + << std::endl; + + + for (Triangulation<2>::cell_iterator + cell = triangulation.begin(); + cell != triangulation.end(); ++cell) + { + deallog << "Cell = " << cell + << (cell->active() ? " is active " : " is not active "); + if (!cell->active()) + { + deallog << "and has children: "; + for (unsigned int i=0; i<4; ++i) + deallog << cell->child(i) << ' '; + } + deallog << std::endl; + } + // now flag everything for coarsening // again for (Triangulation<2>::active_cell_iterator @@ -85,7 +104,9 @@ void test () cell != triangulation.end(); ++cell) cell->set_coarsen_flag (); triangulation.execute_coarsening_and_refinement (); - + + deallog << "n_active_cells = " << triangulation.n_active_cells() + << std::endl; for (Triangulation<2>::cell_iterator cell = triangulation.begin(); -- 2.39.5