]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Use Tensor<...,Number>() instead of Tensor<...>() 1442/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 27 Aug 2015 04:07:58 +0000 (23:07 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 27 Aug 2015 04:08:29 +0000 (23:08 -0500)
include/deal.II/base/tensor_function.templates.h

index 6e1981e6b9d48d97ebf75e16f5acd26916fa7c89..2b89d87980ca2e87b6210e39b930216dbd5fec17 100644 (file)
@@ -43,7 +43,7 @@ typename TensorFunction<rank, dim, Number>::value_type
 TensorFunction<rank, dim, Number>::value (const Point<dim> &) const
 {
   Assert (false, ExcPureFunctionCalled());
-  return Tensor<rank,dim>();
+  return Tensor<rank,dim, Number>();
 }
 
 
@@ -66,7 +66,7 @@ typename TensorFunction<rank, dim, Number>::gradient_type
 TensorFunction<rank, dim, Number>::gradient (const Point<dim> &) const
 {
   Assert (false, ExcPureFunctionCalled());
-  return Tensor<rank+1,dim>();
+  return Tensor<rank+1,dim, Number>();
 }
 
 
@@ -128,7 +128,7 @@ template <int rank, int dim, typename Number>
 typename TensorFunction<rank, dim, Number>::gradient_type
 ConstantTensorFunction<rank, dim, Number>::gradient (const Point<dim> &) const
 {
-  static const Tensor<rank+1,dim> zero;
+  static const Tensor<rank+1, dim, Number> zero;
 
   return zero;
 }
@@ -144,7 +144,7 @@ ConstantTensorFunction<rank, dim, Number>::gradient_list (
   Assert (gradients.size() == points.size(),
           ExcDimensionMismatch(gradients.size(), points.size()));
 
-  static const Tensor<rank+1,dim> zero;
+  static const Tensor<rank+1, dim, Number> zero;
 
   for (unsigned int i=0; i<gradients.size(); ++i)
     gradients[i] = zero;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.