From 97f932a648726d8b47f2c410b9602aa27eba914f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 2 Apr 1998 11:10:57 +0000 Subject: [PATCH] Provide more information upon error. git-svn-id: https://svn.dealii.org/trunk@114 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/dsmatrix.h | 8 +++++--- deal.II/lac/source/dsmatrix.cc | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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])); } -- 2.39.5