From d9c2b84387713aba7503eaa39b4b9711c76f2ad0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 14 Aug 2019 17:22:04 -0600 Subject: [PATCH] Make a few variables 'const'. --- source/fe/mapping_q_generic.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()); -- 2.39.5