]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a couple assertions in good places.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Jul 2009 20:43:50 +0000 (20:43 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Jul 2009 20:43:50 +0000 (20:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@19056 0785d39b-7218-0410-832d-ea1e28bc413d

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

index cd435d6023dff635774a2e8863b87ce154e15d7e..344e1bd3fec9a0eb72426a1271c323e611fed79b 100644 (file)
@@ -62,6 +62,7 @@ void GridIn<dim, spacedim>::read_ucd (std::istream &in)
      >> dummy         // number of data vectors
      >> dummy         // cell data
      >> dummy;        // model data
+  AssertThrow (in, ExcIO());
 
                                   // set up array of vertices
   std::vector<Point<spacedim> >     vertices (n_vertices);
@@ -76,6 +77,7 @@ void GridIn<dim, spacedim>::read_ucd (std::istream &in)
       double x[3];
 
                                       // read vertex
+      AssertThrow (in, ExcIO());
       in >> vertex_number
         >> x[0] >> x[1] >> x[2];
 

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.