]> 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:47:44 +0000 (02:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 25 Oct 2009 02:47:44 +0000 (02:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@19994 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 3b2b64a10dabb5f274e6674f8a8d9e14b4f552b0..8c78e1dd028b74b85955704c9bb35765e0f7f12d 100644 (file)
@@ -241,9 +241,9 @@ void second_grid ()
                                          // numbers like a 4 that
                                          // needs to be replaced by an
                                          // 8:
-        for (unsigned int vertex=0;
-             vertex < GeometryInfo<2>::vertices_per_cell;
-             ++vertex)
+        for (unsigned int v=0;
+             v < GeometryInfo<2>::vertices_per_cell;
+             ++v)
           {
                                              // If this cell is at the
                                              // inner boundary, then
@@ -266,7 +266,7 @@ void second_grid ()
                                              // vertices and move on
                                              // to the next cell.
             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.