]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check in correct output.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Aug 2008 21:56:16 +0000 (21:56 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Aug 2008 21:56:16 +0000 (21:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@16590 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fail/mesh_smoothing_02.cc

index 175c570e38d60df4d64c930ad8c797b855909050..f256873a93a2112284c541dad11acb7273c5500d 100644 (file)
@@ -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();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.