From e35f242b47c4c97aefefdd67363b71fba7829c68 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 19 Jul 2013 19:13:40 +0000 Subject: [PATCH] Work around the removal of a couple of functions in Triangulation. git-svn-id: https://svn.dealii.org/trunk@30064 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/coarsening_03.cc | 2 +- tests/deal.II/dof_test.cc | 2 +- tests/deal.II/grid_test.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/deal.II/coarsening_03.cc b/tests/deal.II/coarsening_03.cc index a2d2bc2d31..ddf86caec8 100644 --- a/tests/deal.II/coarsening_03.cc +++ b/tests/deal.II/coarsening_03.cc @@ -79,7 +79,7 @@ void test() for (unsigned int c=0; c::max_children_per_cell; ++c) triangulation.begin(1)->child(c)->set_refine_flag(); for (unsigned int c=0; c::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 (); diff --git a/tests/deal.II/dof_test.cc b/tests/deal.II/dof_test.cc index c6769d4d0c..d0de02eb16 100644 --- a/tests/deal.II/dof_test.cc +++ b/tests/deal.II/dof_test.cc @@ -252,7 +252,7 @@ void TestCases::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 (); diff --git a/tests/deal.II/grid_test.cc b/tests/deal.II/grid_test.cc index c284132aeb..a4813e3719 100644 --- a/tests/deal.II/grid_test.cc +++ b/tests/deal.II/grid_test.cc @@ -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 (); }; -- 2.39.5