]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename variables in a function. 4064/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 14 Mar 2017 13:30:44 +0000 (07:30 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 19 Mar 2017 19:02:02 +0000 (13:02 -0600)
Match variable names at a calling site to the ones used in the called function.

source/fe/fe_tools.cc

index 438fa43bdc72f47a9a1f489cf0fda23229201d57..20e2587b041da3fb2192113510f0e091f4f47589 100644 (file)
@@ -1628,11 +1628,11 @@ namespace FETools
     // This function specifically works for the case where shape functions
     // have 'dim' vector components, so allocate that much space
     std::vector<Vector<double> >
-    values (points.size(), Vector<double>(dim));
+    support_point_values (points.size(), Vector<double>(dim));
 
     // In this vector, we store the
     // result of the interpolation
-    std::vector<double> local_dofs(n_dofs);
+    std::vector<double> nodal_values(n_dofs);
 
     // Get the values of each shape function in turn. Remember that these
     // are the 'raw' shape functions (i.e., where the element has not yet
@@ -1645,18 +1645,18 @@ namespace FETools
         for (unsigned int k=0; k<points.size(); ++k)
           for (unsigned int d=0; d<dim; ++d)
             {
-              values[k][d] = fe.shape_value_component(i, points[k], d);
-              Assert (numbers::is_finite(values[k][d]), ExcInternalError());
+              support_point_values[k][d] = fe.shape_value_component(i, points[k], d);
+              Assert (numbers::is_finite(support_point_values[k][d]), ExcInternalError());
             }
 
-        fe.convert_generalized_support_point_values_to_nodal_values(values,
-                                                                    local_dofs);
+        fe.convert_generalized_support_point_values_to_nodal_values(support_point_values,
+                                                                    nodal_values);
 
         // Enter the interpolated dofs into the matrix
         for (unsigned int j=0; j<n_dofs; ++j)
           {
-            N(j,i) = local_dofs[j];
-            Assert (numbers::is_finite(local_dofs[j]), ExcInternalError());
+            N(j,i) = nodal_values[j];
+            Assert (numbers::is_finite(nodal_values[j]), ExcInternalError());
           }
       }
 

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.