]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add one more assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jul 2008 22:33:00 +0000 (22:33 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jul 2008 22:33:00 +0000 (22:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@16458 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index ac48a8d28b0a67353d360aebfdd72c72a3cf0da0..25b55c0ec602e28c517cf546c3c7ca91be928cf3 100644 (file)
@@ -917,6 +917,9 @@ void
 SparsityPattern::print (std::ostream &out) const
 {
   Assert ((rowstart!=0) && (colnums!=0), ExcEmptyObject());  
+
+  AssertThrow (out, ExcIO());
+
   for (unsigned int i=0; i<rows; ++i)
     {
       out << '[' << i;

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.