]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an exception.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jul 2008 22:27:58 +0000 (22:27 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Jul 2008 22:27:58 +0000 (22:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@16457 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index 4ae2ff6fa5825f959e38b716f71eb32dad5252d9..ac48a8d28b0a67353d360aebfdd72c72a3cf0da0 100644 (file)
@@ -935,6 +935,9 @@ void
 SparsityPattern::print_gnuplot (std::ostream &out) const
 {
   Assert ((rowstart!=0) && (colnums!=0), ExcEmptyObject());  
+
+  AssertThrow (out, ExcIO());
+  
   for (unsigned int i=0; i<rows; ++i)
     for (unsigned int j=rowstart[i]; j<rowstart[i+1]; ++j)
       if (colnums[j] != invalid_entry)

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.