]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix an obvious typo that leads to a segfault.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Jan 2004 14:06:59 +0000 (14:06 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Jan 2004 14:06:59 +0000 (14:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@8328 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_generator.cc

index 46b35159f381b494ba0578ea322c9978d81a8a93..c8c9b65334bc50829c07cb2c957cf5f0c700ea9d 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -349,7 +349,7 @@ subdivided_hyper_rectangle (Triangulation<dim>              &tria,
         const unsigned int n_xy = (repetitions[0]+1)*(repetitions[1]+1);
         
         cells.resize (repetitions[2]*repetitions[1]*repetitions[0]);
-        for (unsigned int z=0; z<repetitions[1]; ++z)
+        for (unsigned int z=0; z<repetitions[2]; ++z)
           for (unsigned int y=0; y<repetitions[1]; ++y)
             for (unsigned int x=0; x<repetitions[0]; ++x)
               {

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.