From: hartmann Date: Wed, 18 Jul 2001 09:40:12 +0000 (+0000) Subject: Include additional assertion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3cc4b14a8897bc8374dd3300921172245cf5439;p=dealii-svn.git Include additional assertion. git-svn-id: https://svn.dealii.org/trunk@4846 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_generator.cc b/deal.II/deal.II/source/grid/grid_generator.cc index 882333eba9..bbe0106d2a 100644 --- a/deal.II/deal.II/source/grid/grid_generator.cc +++ b/deal.II/deal.II/source/grid/grid_generator.cc @@ -763,6 +763,7 @@ void GridGenerator::laplace_transformation (Triangulation &tria, // the laplace problem std::vector > m(dim); typename std::map >::const_iterator map_iter; + typename std::map >::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 &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 ( face->vertex_dof_index(vertex_no, 0), map_iter->second(i)));