]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix invalid component access.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 16 Aug 2011 00:02:42 +0000 (00:02 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 16 Aug 2011 00:02:42 +0000 (00:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@24081 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/vectors_boundary_rhs_01.cc

index 6b0caad341b53f9976d81fee851d3efb39476a2f..5addf357f323be449844907a4a1aaab5b314cacf 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2000, 2001, 2003, 2004, 2006, 2007 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2003, 2004, 2006, 2007, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -52,7 +52,7 @@ class MySquareFunction : public Function<dim>
     virtual void   vector_value (const Point<dim>   &p,
                                 Vector<double>     &values) const
       {
-       for (unsigned int d=0; d<dim; ++d)
+       for (unsigned int d=0; d<2; ++d)
          values(d) = value(p,d);
       }
 };

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.