]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix two issues that looked like bugs (we increment a local variable when we probably...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Feb 2014 21:06:37 +0000 (21:06 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Feb 2014 21:06:37 +0000 (21:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@32576 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_in.cc

index be09afad439233d4b1b7799cbe46aef0988056db..b4dcd3958979069bb655da393544963a47bed382 100644 (file)
@@ -82,7 +82,7 @@ void GridIn<dim, spacedim>::read_vtk(std::istream &in)
   std::map<int, int> quad_indices; // # quad in unv (key) ---> # quad in deal.II (value)
   std::map<int, int> line_indices; // # line in unv(key) ---> # line in deal.II (value)
 
-  unsigned int no_vertices, no_quads=0,no_lines=0;
+  unsigned int no_vertices, no_quads=0, no_lines=0;
 
   std::string keyword;
 
@@ -164,7 +164,6 @@ void GridIn<dim, spacedim>::read_vtk(std::istream &in)
                 {
 
                   subcelldata.boundary_quads.push_back(CellData<2>());
-                  int no_quads = 0;
 
                   for (j = 0; j < type; j++) //loop to feed the data to the boundary
                     {
@@ -213,7 +212,6 @@ void GridIn<dim, spacedim>::read_vtk(std::istream &in)
                   //If this is encountered, the pointer comes out of the loop
                   //and starts processing boundaries.
                   subcelldata.boundary_lines.push_back(CellData<1>());
-                  int no_lines = 0;
 
                   for (j = 0; j < type; j++) //loop to feed the data to the boundary
                     {

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.