]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace an unnecessary alias variable.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 9 Feb 2023 22:22:43 +0000 (15:22 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 24 Mar 2023 20:43:27 +0000 (14:43 -0600)
source/base/qprojector.cc

index 35d43fb58b5d48b0c56bad4935f210ec75afd6ac..b79b62542ef5fa11ac5ef6edd847c072824fadcf 100644 (file)
@@ -698,7 +698,6 @@ QProjector<3>::project_to_all_faces(const ReferenceCell &     reference_cell,
 
                 // scale quadrature weight
                 const double scaling = [&]() {
-                  const auto &       supp_pts = support_points;
                   const unsigned int dim_     = 2;
                   const unsigned int spacedim = 3;
 
@@ -713,12 +712,13 @@ QProjector<3>::project_to_all_faces(const ReferenceCell &     reference_cell,
 
                   for (unsigned int i = 0; i < spacedim; ++i)
                     for (unsigned int j = 0; j < dim_; ++j)
-                      result[i][j] = shape_derivatives[0][j] * supp_pts[0][i];
+                      result[i][j] =
+                        shape_derivatives[0][j] * support_points[0][i];
                   for (unsigned int k = 1; k < n_linear_shape_functions; ++k)
                     for (unsigned int i = 0; i < spacedim; ++i)
                       for (unsigned int j = 0; j < dim_; ++j)
                         result[i][j] +=
-                          shape_derivatives[k][j] * supp_pts[k][i];
+                          shape_derivatives[k][j] * support_points[k][i];
 
                   DerivativeForm<1, dim_, spacedim> contravariant;
 

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.