]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a few variables 'const'. 8572/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 14 Aug 2019 23:22:04 +0000 (17:22 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 16 Aug 2019 21:04:49 +0000 (15:04 -0600)
source/fe/mapping_q_generic.cc

index 8f0095575023fe7db7345c082c3acdcbf8a3ea2d..4c118116d39857bcfdf5038ff53f768a5f671745 100644 (file)
@@ -3462,7 +3462,7 @@ namespace internal
 
                 for (unsigned int i = 0; i < output.size(); ++i)
                   {
-                    DerivativeForm<1, spacedim, dim> A =
+                    const DerivativeForm<1, spacedim, dim> A =
                       apply_transformation(data.contravariant[i],
                                            transpose(input[i]));
                     output[i] =
@@ -3482,7 +3482,7 @@ namespace internal
 
                 for (unsigned int i = 0; i < output.size(); ++i)
                   {
-                    DerivativeForm<1, spacedim, dim> A =
+                    const DerivativeForm<1, spacedim, dim> A =
                       apply_transformation(data.covariant[i],
                                            transpose(input[i]));
                     output[i] =
@@ -3510,9 +3510,9 @@ namespace internal
 
                 for (unsigned int i = 0; i < output.size(); ++i)
                   {
-                    DerivativeForm<1, spacedim, dim> A =
+                    const DerivativeForm<1, spacedim, dim> A =
                       apply_transformation(data.covariant[i], input[i]);
-                    Tensor<2, spacedim> T =
+                    const Tensor<2, spacedim> T =
                       apply_transformation(data.contravariant[i],
                                            A.transpose());
 

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.