]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a problem with an unused variable that the compiler complains about.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Jun 2010 14:55:56 +0000 (14:55 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Jun 2010 14:55:56 +0000 (14:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@21326 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/symmetric_tensor.h

index 94e3490532972bcc861b90cc36cbef1e535231b5..7841c67b682d6bbc57041dbc5242252ecdc83c20 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2005, 2006, 2008, 2009 by the deal.II authors
+//    Copyright (C) 2005, 2006, 2008, 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
@@ -1510,9 +1510,8 @@ double &
 SymmetricTensor<2,1>::operator () (const TableIndices<2> &indices)
 {
   const unsigned int rank = 2;
-  const unsigned int dim  = 1;
   for (unsigned int r=0; r<rank; ++r)
-    Assert (indices[r] < dim, ExcIndexRange (indices[r], 0, dim));
+    Assert (indices[r] < 1, ExcIndexRange (indices[r], 0, 1));
 
   return data[0];
 }

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.