]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around the removal of a couple of functions in Triangulation.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Jul 2013 19:13:40 +0000 (19:13 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Jul 2013 19:13:40 +0000 (19:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@30064 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/coarsening_03.cc
tests/deal.II/dof_test.cc
tests/deal.II/grid_test.cc

index a2d2bc2d317b31dbe010709cc69ece8c48450b13..ddf86caec88c771569ff2a716ca7bc4024334825 100644 (file)
@@ -79,7 +79,7 @@ void test()
   for (unsigned int c=0; c<GeometryInfo<dim>::max_children_per_cell; ++c)
     triangulation.begin(1)->child(c)->set_refine_flag();
   for (unsigned int c=0; c<GeometryInfo<dim>::max_children_per_cell; ++c)
-    triangulation.last(1)->child(c)->set_coarsen_flag();
+    (--triangulation.begin(2))->child(c)->set_coarsen_flag();
 
   triangulation.prepare_coarsening_and_refinement ();
 
index c6769d4d0c38df9a8f0240da17357bdb8f0faf5d..d0de02eb161244d4add3b4c378ed943a8c8de61e 100644 (file)
@@ -252,7 +252,7 @@ void TestCases<dim>::run (const unsigned int test_case)
           // refine the presently
           // second last cell 17
           // times
-          cell = tria->last_active(tria->n_levels()-1);
+          cell = tria->last_active();
           --cell;
           cell->set_refine_flag ();
           tria->execute_coarsening_and_refinement ();
index c284132aeb931418ca01a5bb3ccd956154b395aa..a4813e37199c417dbed5ca4107481e7959df1a06 100644 (file)
@@ -209,7 +209,7 @@ void test (const int test_case)
           // refine the presently
           // last cell several
           // times
-          cell = tria.last_active(tria.n_levels()-1);
+          cell = tria.last_active();
           cell->set_refine_flag ();
           tria.execute_coarsening_and_refinement ();
         };

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.