]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid confusing people with cell->vertex(vertex).
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 25 Oct 2009 02:49:06 +0000 (02:49 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 25 Oct 2009 02:49:06 +0000 (02:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@19995 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-2/step-2.cc

index 1876b8ee93750a38093a4124acfb83c034f7a2de..ef2aa55a6a719d8d12417e8faca14ca176b218d1 100644 (file)
@@ -3,7 +3,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006, 2008 by the deal.II authors */
+/*    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006, 2008, 2009 by the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -85,9 +85,9 @@ using namespace dealii;
                                  // function, which is too early. We avoid the
                                  // problem by declaring it 'static' which
                                  // makes sure that the object is initialized
-                                 // the first time control flow passes its
-                                 // point of declaration, but at the same time
-                                 // assures that it lives until the end of the
+                                 // the first time control the program passes
+                                 // this point, but at the same time assures
+                                 // that it lives until the end of the
                                  // program.
 void make_grid (Triangulation<2> &triangulation)
 {
@@ -108,12 +108,12 @@ void make_grid (Triangulation<2> &triangulation)
        endc = triangulation.end();
 
       for (; cell!=endc; ++cell)
-       for (unsigned int vertex=0;
-            vertex < GeometryInfo<2>::vertices_per_cell;
-            ++vertex)
+       for (unsigned int v=0;
+            v < GeometryInfo<2>::vertices_per_cell;
+            ++v)
          {
             const double distance_from_center
-              = center.distance (cell->vertex(vertex));
+              = center.distance (cell->vertex(v));
            
            if (std::fabs(distance_from_center - inner_radius) < 1e-10)
              {

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.