From: Wolfgang Bangerth Date: Wed, 14 Aug 2019 23:22:04 +0000 (-0600) Subject: Make a few variables 'const'. X-Git-Tag: v9.2.0-rc1~1231^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9c2b84387713aba7503eaa39b4b9711c76f2ad0;p=dealii.git Make a few variables 'const'. --- diff --git a/source/fe/mapping_q_generic.cc b/source/fe/mapping_q_generic.cc index 8f00955750..4c118116d3 100644 --- a/source/fe/mapping_q_generic.cc +++ b/source/fe/mapping_q_generic.cc @@ -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());