]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Better name variables. 11777/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 18 Feb 2021 19:36:36 +0000 (12:36 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 19 Feb 2021 19:05:53 +0000 (12:05 -0700)
source/grid/grid_in.cc

index 8d7acab9ccd4ba625289a3e8a1a01204577a40ee..777b33619cf3252cf7a205522b1a178abec84317 100644 (file)
@@ -3196,19 +3196,21 @@ namespace
               ReferenceCell::n_vertices_to_type(dim, cell.vertices.size());
             const unsigned int deal_face_n =
               cell_type.exodusii_face_to_deal_face(local_face_n);
-            const auto &face_info = cell_type.face_reference_cell(deal_face_n);
+            const ReferenceCell face_reference_cell =
+              cell_type.face_reference_cell(deal_face_n);
 
             // The orientation we pick doesn't matter here since when we create
             // the Triangulation we will sort the vertices for each CellData
             // object created here.
             if (dim == 2)
               {
-                CellData<1> boundary_line(face_info.n_vertices());
+                CellData<1> boundary_line(face_reference_cell.n_vertices());
                 if (apply_all_indicators_to_manifolds)
                   boundary_line.manifold_id = current_b_or_m_id;
                 else
                   boundary_line.boundary_id = current_b_or_m_id;
-                for (unsigned int j = 0; j < face_info.n_vertices(); ++j)
+                for (unsigned int j = 0; j < face_reference_cell.n_vertices();
+                     ++j)
                   boundary_line.vertices[j] =
                     cell.vertices[cell_type.face_to_cell_vertices(
                       deal_face_n, j, 0)];
@@ -3217,12 +3219,13 @@ namespace
               }
             else if (dim == 3)
               {
-                CellData<2> boundary_quad(face_info.n_vertices());
+                CellData<2> boundary_quad(face_reference_cell.n_vertices());
                 if (apply_all_indicators_to_manifolds)
                   boundary_quad.manifold_id = current_b_or_m_id;
                 else
                   boundary_quad.boundary_id = current_b_or_m_id;
-                for (unsigned int j = 0; j < face_info.n_vertices(); ++j)
+                for (unsigned int j = 0; j < face_reference_cell.n_vertices();
+                     ++j)
                   boundary_quad.vertices[j] =
                     cell.vertices[cell_type.face_to_cell_vertices(
                       deal_face_n, j, 0)];

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.