]> https://gitweb.dealii.org/ - dealii.git/commitdiff
rename vertex number to something more intuitive to students
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 3 Nov 2005 19:18:20 +0000 (19:18 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 3 Nov 2005 19:18:20 +0000 (19:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@11700 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 8d2f18886b6f0afeef6c1e9f7c6d125d10891e4d..ae3766bdf4db69f972b7e6de14990097785c5434 100644 (file)
@@ -1,15 +1,12 @@
-/* $Id$ */
-/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
-
-/*    $Id$       */
-/*    Version: $Name$                                          */
-/*                                                                */
-/*    Copyright (C) 1999, 2000, 2001, 2002, 2003 by the deal.II authors */
-/*                                                                */
-/*    This file is subject to QPL and may not be  distributed     */
-/*    without copyright and license information. Please refer     */
-/*    to the file deal.II/doc/license.html for the  text  and     */
-/*    further information on this license.                        */
+// $Id$
+// Version: $Name$
+//
+//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
 
 
                                  // The most fundamental class in the
@@ -167,9 +164,9 @@ void second_grid ()
                                          // by which we find out about
                                          // the number of faces of a
                                          // cell
-        for (unsigned int vertex=0;
-             vertex < GeometryInfo<2>::vertices_per_cell;
-             ++vertex)
+        for (unsigned int ivertex=0;
+             ivertex < GeometryInfo<2>::vertices_per_cell;
+             ++ivertex)
           {
                                              // If this cell is at the
                                              // inner boundary, then
@@ -178,7 +175,7 @@ void second_grid ()
                                              // distance from the center
                                              // of 0.5
             const Point<2> vector_to_center
-              = (cell->vertex(vertex) - center);
+              = (cell->vertex(ivertex) - center);
             const double distance_from_center
               = std::sqrt(vector_to_center.square());
             

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.