]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More active_cell_iterators(). 9616/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 4 Mar 2020 15:54:47 +0000 (08:54 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 4 Mar 2020 15:54:47 +0000 (08:54 -0700)
tests/grid/build_triangulation_from_patch_01.cc
tests/grid/build_triangulation_from_patch_02.cc
tests/grid/build_triangulation_from_patch_03.cc
tests/grid/build_triangulation_from_patch_04.cc

index 828df52cce1db5e2476dfad00e263262e4ec9389..e3bf61c261b48454cac486de6b96a7c19fe92a88 100644 (file)
@@ -67,10 +67,7 @@ test()
       deallog << std::endl;
 
       deallog << "local_triangulation " << cell << ":\n";
-      for (typename Triangulation<dim>::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() ? " (+) " : " (-) ")
index 1d2f7b0f49dd180bd5b3dd58e4fc9077eb35f198..83f1e8b247b309f88bdc74e0184e0dafa8a23140 100644 (file)
@@ -69,10 +69,7 @@ test()
       deallog << std::endl;
 
       deallog << "local_triangulation " << cell << ": ";
-      for (typename Triangulation<dim>::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() ? " (+) " : " (-) ")
index b9ce6b15768a83b488dec8f00cf0d09beb20c1e5..daf1a0e6a9133db16497030854e6a31b93884462 100644 (file)
@@ -74,10 +74,7 @@ test()
       deallog << std::endl;
 
       deallog << "local_triangulation " << cell << ":\n";
-      for (typename Triangulation<dim>::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() ? " (+) " : " (-) ")
index 4868da2cfe4ab368ddc0e45f99398cc6443f0c5b..1e6e6d4dad06470347e4e59aac7f79cd8bb4ef40 100644 (file)
@@ -80,10 +80,7 @@ test()
       deallog << std::endl;
 
       deallog << "local_triangulation " << cell << ": ";
-      for (typename Triangulation<dim>::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() ? " (+) " : " (-) ")

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.