]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Kill of a messy debug paragraph (move to tests/deal.II)
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Feb 2013 12:14:41 +0000 (12:14 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Feb 2013 12:14:41 +0000 (12:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@28252 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_generator.cc

index 1d91325670eff76beb37d3e56c8f3b3fa4e11dd4..6e43558f2bb4791420c17cecd333daa51dbb6472 100644 (file)
@@ -546,20 +546,6 @@ GridGenerator::subdivided_parallelepiped (Triangulation<dim>  &tria,
       Assert (false, ExcNotImplemented());
     }
 
-#ifdef DEBUG
-  // Debug block: Try to delete duplicates (a good grid has none) and
-  // then check none actually were deleted (this may be a superflous
-  // test; if the corners[] were unique, the points should be too)
-  unsigned int n_points = 1;
-  for (unsigned int i=0; i<dim; ++i)
-    n_points *= n_subdivisions[i]+1;
-
-  points.erase (std::unique (points.begin (), points.end ()),
-                points.end ());
-  Assert (points.size ()==n_points,
-          ExcInternalError());
-#endif
-
   // Prepare cell data
   unsigned int n_cells = 1;
   for (unsigned int i=0; i<dim; ++i)

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.