]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Nov 2010 21:06:37 +0000 (21:06 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Nov 2010 21:06:37 +0000 (21:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@22810 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_tools.cc

index 646769dabbc7a4b08515bdc24d838738452eb568..5af96763c749b85ed8b29a38e9501d9b78686958 100644 (file)
@@ -1897,6 +1897,7 @@ GridTools::extract_boundary_mesh (const Container<dim,spacedim> &volume_mesh,
       }
 
                                   // create level 0 surface triangulation
+  Assert (cells.size() > 0, ExcMessage ("No boundary faces selected"));
   const_cast<Triangulation<dim-1,spacedim>&>(get_tria(surface_mesh))
     .create_triangulation (vertices, cells, SubCellData());
 

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.