From: Jean-Paul Pelteret Date: Wed, 16 Aug 2017 19:31:56 +0000 (-0600) Subject: Fixed symmetric tensor operator * (scalar * symm_ten) X-Git-Tag: v9.0.0-rc1~1196^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975ec532032f52f67b537ee9b5e40f66b7dbed95;p=dealii.git Fixed symmetric tensor operator * (scalar * symm_ten) --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index 98fde9de2b..2dc5705e7a 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -3463,7 +3463,7 @@ template inline SymmetricTensor operator * (const SymmetricTensor &t, - const Number factor) + const Number &factor) { SymmetricTensor tt = t; tt *= factor; @@ -3482,7 +3482,7 @@ operator * (const SymmetricTensor &t, template inline SymmetricTensor -operator * (const Number factor, +operator * (const Number &factor, const SymmetricTensor &t) { // simply forward to the other operator @@ -3520,7 +3520,7 @@ template inline SymmetricTensor::type>::type> operator * (const SymmetricTensor &t, - const OtherNumber factor) + const OtherNumber &factor) { // form the product. we have to convert the two factors into the final // type via explicit casts because, for awkward reasons, the C++ @@ -3554,8 +3554,8 @@ operator * (const SymmetricTensor &t, */ template inline -SymmetricTensor::type>::type> -operator * (const Number factor, +SymmetricTensor::type>::type> +operator * (const Number &factor, const SymmetricTensor &t) { // simply forward to the other operator with switched arguments