]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Patch by Mayank Sabharwal: Fix an indexing error in GridIn::read_vtk().
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Feb 2014 19:44:05 +0000 (19:44 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Feb 2014 19:44:05 +0000 (19:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@32517 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/source/grid/grid_in.cc

index beb94ec9ee9a57e8b53b6a8686e66f4605f46cfa..dcdfd4082aef8b5dc62b25453bb9d55c47ba4dc0 100644 (file)
@@ -135,8 +135,13 @@ inconvenience this causes.
 <h3>Specific improvements</h3>
 
 <ol>
-  <li>New: There is a new namespace TimeStepping for the algorithms that do time 
-  integrations. In this new namespace, several Runge-Kutta methods have been 
+  <li>Fixed: There was an indexing error in GridIn::read_vtk() that triggered
+  for some input files. This is now fixed.
+  <br>
+  (Mayank Sabharwal, 2014/02/19)
+
+  <li>New: There is a new namespace TimeStepping for the algorithms that do time
+  integrations. In this new namespace, several Runge-Kutta methods have been
   implemented: explicit methods, implicit methods, and embedded explicit methods.
   <br>
   (Damien Lebrun-Grandie, Bruno Turcksin, 2014/02/17)
index c3072c1218d08453f3027fcd06dc7d34fed1e05a..be09afad439233d4b1b7799cbe46aef0988056db 100644 (file)
@@ -1,7 +1,7 @@
 // ---------------------------------------------------------------------
 // $Id$
 //
-// Copyright (C) 1999 - 2013 by the deal.II authors
+// Copyright (C) 1999 - 2014 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -175,7 +175,7 @@ void GridIn<dim, spacedim>::read_vtk(std::istream &in)
                     {
                       subcelldata.boundary_quads.back().vertices[j] = vertex_indices[subcelldata.boundary_quads.back().vertices[j]];
                     }
-                  quad_indices[count] = count + 1;
+                  quad_indices[no_quads] = no_quads + 1;
                   no_quads++;
                 }
 
@@ -224,7 +224,7 @@ void GridIn<dim, spacedim>::read_vtk(std::istream &in)
                     {
                       subcelldata.boundary_lines.back().vertices[j] = vertex_indices[subcelldata.boundary_lines.back().vertices[j]];
                     }
-                  line_indices[count] = count + 1;
+                  line_indices[no_lines] = no_lines + 1;
                   no_lines++;
                 }
 

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.