From: Jean-Paul Pelteret Date: Sat, 3 Feb 2018 08:24:19 +0000 (+0100) Subject: Remove a template parameter specifying the number type of a tensor. X-Git-Tag: v9.0.0-rc1~454^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde128f49d919bb7646e6245bd4de01a1a0063fa;p=dealii.git Remove a template parameter specifying the number type of a tensor. This will prevent premature casting of one tensor type into another; this operation is now taken up in the more general Tensor::operator*. --- diff --git a/source/fe/fe_values.cc b/source/fe/fe_values.cc index 686d6c35c9..8d73901763 100644 --- a/source/fe/fe_values.cc +++ b/source/fe/fe_values.cc @@ -2892,7 +2892,7 @@ namespace internal = &shape_derivatives[shape_func][0]; for (unsigned int point=0; point(*shape_derivative_ptr++); + dealii::Tensor(*shape_derivative_ptr++); } } @@ -2965,11 +2965,11 @@ namespace internal if (quadrature_points_fastest) for (unsigned int point=0; point(*shape_derivative_ptr++); + dealii::Tensor(*shape_derivative_ptr++); else for (unsigned int point=0; point(*shape_derivative_ptr++); + dealii::Tensor(*shape_derivative_ptr++); } else for (unsigned int c=0; c(*shape_derivative_ptr++); + dealii::Tensor(*shape_derivative_ptr++); else for (unsigned int point=0; point(*shape_derivative_ptr++); + dealii::Tensor(*shape_derivative_ptr++); } } }