From: Wolfgang Bangerth Date: Wed, 5 May 2021 15:59:15 +0000 (-0600) Subject: Small cleanups. X-Git-Tag: v9.3.0-rc1~133^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12145%2Fhead;p=dealii.git Small cleanups. --- diff --git a/include/deal.II/numerics/vector_tools_boundary.templates.h b/include/deal.II/numerics/vector_tools_boundary.templates.h index 5f52784853..01d20e36f6 100644 --- a/include/deal.II/numerics/vector_tools_boundary.templates.h +++ b/include/deal.II/numerics/vector_tools_boundary.templates.h @@ -2961,17 +2961,15 @@ namespace VectorTools update_JxW_values); // Storage for dof values found and whether they have been processed: - std::vector dofs_processed; - std::vector dof_values; - std::vector face_dof_indices; - typename DoFHandler::active_cell_iterator cell = - dof_handler.begin_active(); + std::vector dofs_processed; + std::vector dof_values; + std::vector 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(