]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed bug in delete_duplicated_vertices, which was running only up to dim instead...
authorLuca Heltai <luca.heltai@sissa.it>
Wed, 18 Jun 2014 12:49:43 +0000 (12:49 +0000)
committerLuca Heltai <luca.heltai@sissa.it>
Wed, 18 Jun 2014 12:49:43 +0000 (12:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@33058 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_tools.cc

index 39c240319438f21386d5597760fe9068782bce07..8a1e931f9274e282e25b89e60478074fa4b08510 100644 (file)
@@ -505,7 +505,7 @@ namespace GridTools
         for (unsigned int j=i+1; j<considered_vertices.size(); ++j)
           {
             bool equal=true;
-            for (unsigned int d=0; d<dim; ++d)
+            for (unsigned int d=0; d<spacedim; ++d)
               equal &= (fabs(vertices[considered_vertices[j]](d)-vertices[considered_vertices[i]](d))<tol);
             if (equal)
               {

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.