From 720566f74d1cb8505ce3050ade726b079d175096 Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 2 Mar 2016 08:37:47 -0500 Subject: [PATCH] Prefer 'face (face_n)' to 'face(face)'. The former is easier to read. --- source/dofs/dof_tools_sparsity.cc | 42 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/source/dofs/dof_tools_sparsity.cc b/source/dofs/dof_tools_sparsity.cc index 32db3acc89..66c701034b 100644 --- a/source/dofs/dof_tools_sparsity.cc +++ b/source/dofs/dof_tools_sparsity.cc @@ -747,23 +747,23 @@ namespace DoFTools dofs_on_this_cell[j]); // Loop over all interior neighbors - for (unsigned int face = 0; - face < GeometryInfo::faces_per_cell; - ++face) + for (unsigned int face_n = 0; + face_n < GeometryInfo::faces_per_cell; + ++face_n) { const typename DoFHandlerType::face_iterator - cell_face = cell->face(face); + cell_face = cell->face(face_n); if (cell_face->user_flag_set ()) continue; - if (cell->at_boundary (face) ) + if (cell->at_boundary (face_n) ) { for (unsigned int i=0; ineighbor(face); + neighbor = cell->neighbor(face_n); // Refinement edges are taken care of by coarser // cells - if (cell->neighbor_is_coarser(face)) + if (cell->neighbor_is_coarser(face_n)) continue; const unsigned int - neighbor_face = cell->neighbor_of_neighbor(face); + neighbor_face_n = cell->neighbor_of_neighbor(face_n); if (cell_face->has_children()) { @@ -797,17 +797,17 @@ namespace DoFTools { const typename DoFHandlerType::level_cell_iterator sub_neighbor - = cell->neighbor_child_on_subface (face, sub_nr); + = cell->neighbor_child_on_subface (face_n, sub_nr); sub_neighbor->get_dof_indices (dofs_on_other_cell); for (unsigned int i=0; iface(neighbor_face)->set_user_flag (); + sub_neighbor->face(neighbor_face_n)->set_user_flag (); } } else @@ -872,12 +872,12 @@ namespace DoFTools neighbor->get_dof_indices (dofs_on_other_cell); for (unsigned int i=0; iface(neighbor_face)->set_user_flag (); + neighbor->face(neighbor_face_n)->set_user_flag (); } } } -- 2.39.5