From: Wolfgang Bangerth Date: Thu, 2 Apr 1998 11:10:57 +0000 (+0000) Subject: Provide more information upon error. X-Git-Tag: v8.0.0~23140 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f932a648726d8b47f2c410b9602aa27eba914f;p=dealii.git Provide more information upon error. git-svn-id: https://svn.dealii.org/trunk@114 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/dsmatrix.h b/deal.II/lac/include/lac/dsmatrix.h index c6bc196275..81690dce27 100644 --- a/deal.II/lac/include/lac/dsmatrix.h +++ b/deal.II/lac/include/lac/dsmatrix.h @@ -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?)"); }; diff --git a/deal.II/lac/source/dsmatrix.cc b/deal.II/lac/source/dsmatrix.cc index b0d90fddd5..c038df127c 100644 --- a/deal.II/lac/source/dsmatrix.cc +++ b/deal.II/lac/source/dsmatrix.cc @@ -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])); }