]> https://gitweb.dealii.org/ - dealii.git/commitdiff
use range loop 6825/head
authorDenis Davydov <davydden@gmail.com>
Fri, 22 Jun 2018 12:28:36 +0000 (14:28 +0200)
committerDenis Davydov <davydden@gmail.com>
Fri, 22 Jun 2018 12:28:36 +0000 (14:28 +0200)
source/dofs/dof_tools_constraints.cc

index 147b237165f047a9d55e293b0c7afdf33719675c..4cd35045f94710cea367d6d33e27e653d680e04b 100644 (file)
@@ -1080,10 +1080,7 @@ namespace DoFTools
       // note that even though we may visit a face twice if the neighboring
       // cells are equally refined, we can only visit each face with hanging
       // nodes once
-      typename DoFHandlerType::active_cell_iterator cell = dof_handler
-                                                             .begin_active(),
-                                                    endc = dof_handler.end();
-      for (; cell != endc; ++cell)
+      for (const auto cell : dof_handler.active_cell_iterators())
         {
           // artificial cells can at best neighbor ghost cells, but we're not
           // interested in these interfaces

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.