]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove unnecessary specializations and a confusing comment
authorMatthias Maier <tamiko@43-1.org>
Mon, 7 Sep 2015 02:20:09 +0000 (21:20 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 7 Sep 2015 18:36:24 +0000 (13:36 -0500)
include/deal.II/base/tensor.h

index 4e0cf9fdf251329a87f51f0f694abe5cb2f6ccba..ec33830578f2b65d4b5540e380e6299363ce2e96 100644 (file)
@@ -816,9 +816,6 @@ inline
 Tensor<rank_,dim,Number>::Tensor (const bool initialize)
 {
   if (initialize)
-    // need to create an object Number() to initialize to zero to avoid
-    // confusion with Tensor::operator=(scalar) when using something like
-    // Tensor<1,dim,Tensor<1,dim,Number> >.
     for (unsigned int i=0; i!=dim; ++i)
       values[i] = value_type();
 }
@@ -852,18 +849,6 @@ Tensor<rank_,dim,Number>::Tensor (const Tensor<rank_,dim,OtherNumber> &initializ
 }
 
 
-// At some places in the library, we have Point<0> for formal reasons
-// (e.g., we sometimes have Quadrature<dim-1> for faces, so we have
-// Quadrature<0> for dim=1, and then we have Point<0>). To avoid warnings
-// in the above function that the loop end check always fails, we
-// implement this function here
-template <>
-inline
-Tensor<1,0,double>::Tensor (const Tensor<1,0,double> &)
-{
-}
-
-
 template <int rank_, int dim, typename Number>
 template <typename OtherNumber>
 inline
@@ -936,19 +921,6 @@ Tensor<rank_,dim,Number>::operator = (const Tensor<rank_,dim,Number> &t)
 }
 
 
-// At some places in the library, we have Point<0> for formal reasons
-// (e.g., we sometimes have Quadrature<dim-1> for faces, so we have
-// Quadrature<0> for dim=1, and then we have Point<0>). To avoid warnings
-// in the above function that the loop end check always fails, we
-// implement this function here
-template <>
-inline
-Tensor<1,0,double> &Tensor<1,0,double>::operator = (const Tensor<1,0,double> &)
-{
-  return *this;
-}
-
-
 template <int rank_, int dim, typename Number>
 template <typename OtherNumber>
 inline

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.