From 832603497a19364536eb016994f932ce987c370d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 5 May 2021 09:59:15 -0600 Subject: [PATCH] Small cleanups. --- .../numerics/vector_tools_boundary.templates.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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( -- 2.39.5