]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Include additional assertion.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Jul 2001 09:40:12 +0000 (09:40 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Jul 2001 09:40:12 +0000 (09:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@4846 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_generator.cc

index 882333eba957b453fb7db1a76b773c363f482658..bbe0106d2ac3f508e34a9728ad8a2f585872e62e 100644 (file)
@@ -763,6 +763,7 @@ void GridGenerator::laplace_transformation (Triangulation<dim> &tria,
                                   // the laplace problem
   std::vector<std::map<unsigned int,double> > m(dim);
   typename std::map<unsigned int,Point<dim> >::const_iterator map_iter;
+  typename std::map<unsigned int,Point<dim> >::const_iterator map_end=new_points.end();
 
                                   // fill these maps using the data
                                   // given by new_points
@@ -781,6 +782,8 @@ void GridGenerator::laplace_transformation (Triangulation<dim> &tria,
                {
                  const unsigned int vertex_index=face->vertex_index(vertex_no);
                  map_iter=new_points.find(vertex_index);
+                 Assert(map_iter!=map_end, ExcInternalError());
+                 
                  for (unsigned int i=0; i<dim; ++i)
                    m[i].insert(std::pair<unsigned int,double> (
                      face->vertex_dof_index(vertex_no, 0), map_iter->second(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.