]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Additional security check in user accessible function.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Jun 1998 07:35:08 +0000 (07:35 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Jun 1998 07:35:08 +0000 (07:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@376 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 7454caee48513788f8cb9ee51a35df364e3186e8..5d0320dcefb241146632d419b27609b5fdecbb67 100644 (file)
@@ -130,6 +130,8 @@ void Triangulation<1>::create_triangulation (const vector<Point<1> >    &v,
   
   Assert (vertices.size() == 0, ExcTriangulationNotEmpty());
   Assert (n_lines() == 0, ExcTriangulationNotEmpty());
+                                  // check that no forbidden arrays are used
+  Assert (subcelldata.check_consistency(dim), ExcInternalError());
 
                                   // copy vertices
   vertices = v;
@@ -264,6 +266,8 @@ void Triangulation<2>::create_triangulation (const vector<Point<2> >    &v,
   Assert (vertices.size() == 0, ExcTriangulationNotEmpty());
   Assert (n_lines() == 0, ExcTriangulationNotEmpty());
   Assert (n_quads() == 0, ExcTriangulationNotEmpty());
+                                  // check that no forbidden arrays are used
+  Assert (subcelldata.check_consistency(dim), ExcInternalError());
 
                                   // copy vertices
   vertices = v;

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.