]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add ProductType description also for SymmetricTensor. 630/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 2 Mar 2015 14:45:46 +0000 (08:45 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 2 Mar 2015 14:45:46 +0000 (08:45 -0600)
include/deal.II/base/symmetric_tensor.h

index 0b42c16f3d3b7ee4ca278d3f994e196b32617726..cb6179434e86cc655028726d8fcca09d0e130620 100644 (file)
@@ -2703,6 +2703,24 @@ operator * (const Number                            factor,
 }
 
 
+#ifndef DEAL_II_WITH_CXX11
+
+template <typename T, typename U, int rank, int dim>
+struct ProductType<T,SymmetricTensor<rank,dim,U> >
+{
+  typedef SymmetricTensor<rank,dim,typename ProductType<T,U>::type> type;
+};
+
+template <typename T, typename U, int rank, int dim>
+struct ProductType<SymmetricTensor<rank,dim,T>,U>
+{
+  typedef SymmetricTensor<rank,dim,typename ProductType<T,U>::type> type;
+};
+
+#endif
+
+
+
 /**
  * Multiplication of a symmetric tensor with a scalar number from the right.
  *

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.