]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Check that there is indeed enough input.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Jun 2002 15:59:11 +0000 (15:59 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Jun 2002 15:59:11 +0000 (15:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@6145 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_in.cc

index 60e407ca41c0276497e939673aaea04141c22c20..cea4f49d8f767ef0f7f473683305ac8bdf2813b5 100644 (file)
@@ -92,6 +92,13 @@ void GridIn<dim>::read_ucd (std::istream &in)
 
   for (unsigned int cell=0; cell<n_cells; ++cell) 
     {
+                                      // note that since in the input
+                                      // file we found the number of
+                                      // cells at the top, there
+                                      // should still be input here,
+                                      // so check this:
+      AssertThrow (in, ExcIO());
+      
       std::string cell_type;
       int material_id;
       

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.