From: Wolfgang Bangerth Date: Tue, 4 Aug 2015 17:32:58 +0000 (-0500) Subject: Improve the error message for copying and adding sparse matrices with X-Git-Tag: v8.4.0-rc2~678^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8fed32879b7d99946e3ef43bc6adc3ef15dbb52;p=dealii.git Improve the error message for copying and adding sparse matrices with different sparsity patterns. --- diff --git a/include/deal.II/lac/sparse_matrix.h b/include/deal.II/lac/sparse_matrix.h index e234a03746..6485675fa5 100644 --- a/include/deal.II/lac/sparse_matrix.h +++ b/include/deal.II/lac/sparse_matrix.h @@ -1516,7 +1516,11 @@ public: /** * Exception */ - DeclException0 (ExcDifferentSparsityPatterns); + DeclExceptionMsg (ExcDifferentSparsityPatterns, + "When copying one sparse matrix into another, " + "or when adding one sparse matrix to another, " + "both matrices need to refer to the same " + "sparsity pattern."); /** * Exception */