From: Jean-Paul Pelteret Date: Fri, 17 Nov 2017 08:08:45 +0000 (+0100) Subject: Change the temporary type for a scalar_product function. X-Git-Tag: v9.0.0-rc1~746^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f42480459e93c1101c29638ae7117ecbb5a3bb0;p=dealii.git Change the temporary type for a scalar_product function. --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index d39ee90e3b..df62374d06 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -3673,7 +3673,7 @@ typename ProductType::type scalar_product (const SymmetricTensor<2,dim,Number> &t1, const Tensor<2,dim,OtherNumber> &t2) { - Number s = 0; + typename ProductType::type s = internal::NumberType::type>::value(0.0); for (unsigned int i=0; i