From 6c0bfdb5d97756413e0d55c3d4c85910f5ebf209 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 4 Mar 2020 08:54:47 -0700 Subject: [PATCH] More active_cell_iterators(). --- tests/grid/build_triangulation_from_patch_01.cc | 5 +---- tests/grid/build_triangulation_from_patch_02.cc | 5 +---- tests/grid/build_triangulation_from_patch_03.cc | 5 +---- tests/grid/build_triangulation_from_patch_04.cc | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/tests/grid/build_triangulation_from_patch_01.cc b/tests/grid/build_triangulation_from_patch_01.cc index 828df52cce..e3bf61c261 100644 --- a/tests/grid/build_triangulation_from_patch_01.cc +++ b/tests/grid/build_triangulation_from_patch_01.cc @@ -67,10 +67,7 @@ test() deallog << std::endl; deallog << "local_triangulation " << cell << ":\n"; - for (typename Triangulation::active_cell_iterator tria_cell = - local_triangulation.begin_active(); - tria_cell != local_triangulation.end(); - ++tria_cell) + for (const auto &tria_cell : local_triangulation.active_cell_iterators()) { deallog << " " << tria_cell << " user flag check: " << (tria_cell->user_flag_set() ? " (+) " : " (-) ") diff --git a/tests/grid/build_triangulation_from_patch_02.cc b/tests/grid/build_triangulation_from_patch_02.cc index 1d2f7b0f49..83f1e8b247 100644 --- a/tests/grid/build_triangulation_from_patch_02.cc +++ b/tests/grid/build_triangulation_from_patch_02.cc @@ -69,10 +69,7 @@ test() deallog << std::endl; deallog << "local_triangulation " << cell << ": "; - for (typename Triangulation::active_cell_iterator tria_cell = - local_triangulation.begin_active(); - tria_cell != local_triangulation.end(); - ++tria_cell) + for (const auto &tria_cell : local_triangulation.active_cell_iterators()) { deallog << " " << tria_cell << " user flag check: " << (tria_cell->user_flag_set() ? " (+) " : " (-) ") diff --git a/tests/grid/build_triangulation_from_patch_03.cc b/tests/grid/build_triangulation_from_patch_03.cc index b9ce6b1576..daf1a0e6a9 100644 --- a/tests/grid/build_triangulation_from_patch_03.cc +++ b/tests/grid/build_triangulation_from_patch_03.cc @@ -74,10 +74,7 @@ test() deallog << std::endl; deallog << "local_triangulation " << cell << ":\n"; - for (typename Triangulation::active_cell_iterator tria_cell = - local_triangulation.begin_active(); - tria_cell != local_triangulation.end(); - ++tria_cell) + for (const auto &tria_cell : local_triangulation.active_cell_iterators()) { deallog << " " << tria_cell << " user flag check: " << (tria_cell->user_flag_set() ? " (+) " : " (-) ") diff --git a/tests/grid/build_triangulation_from_patch_04.cc b/tests/grid/build_triangulation_from_patch_04.cc index 4868da2cfe..1e6e6d4dad 100644 --- a/tests/grid/build_triangulation_from_patch_04.cc +++ b/tests/grid/build_triangulation_from_patch_04.cc @@ -80,10 +80,7 @@ test() deallog << std::endl; deallog << "local_triangulation " << cell << ": "; - for (typename Triangulation::active_cell_iterator tria_cell = - local_triangulation.begin_active(); - tria_cell != local_triangulation.end(); - ++tria_cell) + for (const auto &tria_cell : local_triangulation.active_cell_iterators()) { deallog << " " << tria_cell << " user flag check: " << (tria_cell->user_flag_set() ? " (+) " : " (-) ") -- 2.39.5