]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Small cleanups. 12145/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 5 May 2021 15:59:15 +0000 (09:59 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 5 May 2021 15:59:15 +0000 (09:59 -0600)
include/deal.II/numerics/vector_tools_boundary.templates.h

index 5f5278485308d795cf3a1c566e6303834d015016..01d20e36f6a546360813b780b73b5cba400296f4 100644 (file)
@@ -2961,17 +2961,15 @@ namespace VectorTools
                                              update_JxW_values);
 
       // Storage for dof values found and whether they have been processed:
-      std::vector<bool>                                        dofs_processed;
-      std::vector<number>                                      dof_values;
-      std::vector<types::global_dof_index>                     face_dof_indices;
-      typename DoFHandler<dim, spacedim>::active_cell_iterator cell =
-        dof_handler.begin_active();
+      std::vector<bool>                    dofs_processed;
+      std::vector<number>                  dof_values;
+      std::vector<types::global_dof_index> face_dof_indices;
 
       switch (dim)
         {
           case 2:
             {
-              for (; cell != dof_handler.end(); ++cell)
+              for (const auto &cell : dof_handler.active_cell_iterators())
                 {
                   if (cell->at_boundary() && cell->is_locally_owned())
                     {
@@ -3094,7 +3092,7 @@ namespace VectorTools
                                                  update_quadrature_points |
                                                  update_values);
 
-              for (; cell != dof_handler.end(); ++cell)
+              for (const auto &cell : dof_handler.active_cell_iterators())
                 {
                   if (cell->at_boundary() && cell->is_locally_owned())
                     {
@@ -3143,7 +3141,7 @@ namespace VectorTools
 
                               // First compute the projection on the edges.
                               for (unsigned int line = 0;
-                                   line < GeometryInfo<3>::lines_per_face;
+                                   line < cell->face(face)->n_lines();
                                    ++line)
                                 {
                                   compute_edge_projection_l2(

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.