From: bangerth Date: Thu, 27 Feb 2014 21:06:37 +0000 (+0000) Subject: Fix two issues that looked like bugs (we increment a local variable when we probably... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e534bd83e1dda46a2345cb49eb2a0356a6262fd;p=dealii-svn.git Fix two issues that looked like bugs (we increment a local variable when we probably wanted to increment a variable in a scope further out). git-svn-id: https://svn.dealii.org/trunk@32576 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/grid/grid_in.cc b/deal.II/source/grid/grid_in.cc index be09afad43..b4dcd39589 100644 --- a/deal.II/source/grid/grid_in.cc +++ b/deal.II/source/grid/grid_in.cc @@ -82,7 +82,7 @@ void GridIn::read_vtk(std::istream &in) std::map quad_indices; // # quad in unv (key) ---> # quad in deal.II (value) std::map 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::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::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 {