]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Don't compute stuff we never use. In particular, don't create variables then
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 21:14:12 +0000 (21:14 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 21:14:12 +0000 (21:14 +0000)
access beyond their end.

git-svn-id: https://svn.dealii.org/trunk@23890 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/slice_vector.cc

index 149b570210db9fbb33b0c4db3ff143960783af43..fa3ab3be57250874b5524d6dfcbb009867a97ec4 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005, 2006, 2008 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2006, 2008, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -56,6 +56,4 @@ int main()
   f(v);
 
   make_slice(v, 3, 5);
-  int n = s[4];
-  n += 3;
 }

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.