From: Wolfgang Bangerth Date: Wed, 4 Mar 2020 15:54:47 +0000 (-0700) Subject: More active_cell_iterators(). X-Git-Tag: v9.2.0-rc1~457^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9616%2Fhead;p=dealii.git More active_cell_iterators(). --- 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() ? " (+) " : " (-) ")