]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide more information upon error.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 11:10:57 +0000 (11:10 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 11:10:57 +0000 (11:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@114 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/dsmatrix.h
deal.II/lac/source/dsmatrix.cc

index c6bc19627598d0982fbde05e576f10d738d67bc5..81690dce27489b06d0a9d5f5d85101dfdad0b0ed 100644 (file)
@@ -127,10 +127,12 @@ public:
                                     /**
                                      * Exception
                                      */
-    DeclException1 (ExcNotEnoughSpace,
-                   int,
+    DeclException2 (ExcNotEnoughSpace,
+                   int, int,
                    << "Upon entering a new entry to row " << arg1
-                   << ": there was no free entry any more.");
+                   << ": there was no free entry any more. " << endl
+                   << "(Maximum number of entries for this row: "
+                   << arg2 << "; maybe the matrix is already compressed?)");
 };
 
 
index b0d90fddd59c47ef7b1fb0f1d5e03fbacf9bc230..c038df127cd48e3e4da6812cd85a3aa3297d11c8 100644 (file)
@@ -258,7 +258,7 @@ dSMatrixStruct::add (int i, int j)
                                   // if we came thus far, something went
                                   // wrong: there was not enough space
                                   // in this line
-  Assert (false, ExcNotEnoughSpace(i));
+  Assert (false, ExcNotEnoughSpace(i, rowstart[i+1]-rowstart[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.