From a07efc01e4d0e9d7efc6de3dd172f90c687f2cf6 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 6 Nov 2008 20:30:33 +0000 Subject: [PATCH] Make test use iterator typedefs rather than the underlying type to make it more robust against changes in the library. git-svn-id: https://svn.dealii.org/trunk@17498 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/mesh_smoothing_01.cc | 4 ++-- tests/deal.II/mesh_smoothing_02.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/deal.II/mesh_smoothing_01.cc b/tests/deal.II/mesh_smoothing_01.cc index 420fe765e8..9e4b6467e6 100644 --- a/tests/deal.II/mesh_smoothing_01.cc +++ b/tests/deal.II/mesh_smoothing_01.cc @@ -42,7 +42,7 @@ using namespace dealii; template -bool cell_is_patch_level_1 (const TriaIterator > &cell) +bool cell_is_patch_level_1 (const typename Triangulation::cell_iterator &cell) { Assert (cell->active() == false, ExcInternalError()); @@ -167,7 +167,7 @@ void test () (cell->coarsen_flag_set() == false), ExcInternalError()); if (!cell->active()) - Assert (cell_is_patch_level_1(cell), + Assert (cell_is_patch_level_1<2>(cell), ExcInternalError()); } diff --git a/tests/deal.II/mesh_smoothing_02.cc b/tests/deal.II/mesh_smoothing_02.cc index f256873a93..482734e1b5 100644 --- a/tests/deal.II/mesh_smoothing_02.cc +++ b/tests/deal.II/mesh_smoothing_02.cc @@ -53,7 +53,7 @@ using namespace dealii; template -bool cell_is_patch_level_1 (const TriaIterator > &cell) +bool cell_is_patch_level_1 (const typename Triangulation::cell_iterator &cell) { Assert (cell->active() == false, ExcInternalError()); @@ -117,7 +117,7 @@ void test () (cell->coarsen_flag_set() == false), ExcInternalError()); if (!cell->active()) - Assert (cell_is_patch_level_1(cell), + Assert (cell_is_patch_level_1<2>(cell), ExcInternalError()); } -- 2.39.5