]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a warning when instantiating Tensor<1,0>.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Dec 2010 15:38:12 +0000 (15:38 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Dec 2010 15:38:12 +0000 (15:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@22969 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/tensor_base.h

index 0a1c4bb63decdc44f211572d1184334a3596cf0c..82addaafae4b54c64b4d80095dcb298c43628ddb 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -1016,6 +1016,15 @@ bool Tensor<1,dim>::operator == (const Tensor<1,dim> &p) const
 
 
 
+template <>
+inline
+bool Tensor<1,0>::operator == (const Tensor<1,0> &) const
+{
+  return true;
+}
+
+
+
 template <int dim>
 inline
 bool Tensor<1,dim>::operator != (const Tensor<1,dim> &p) const

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.