]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve the error message for copying and adding sparse matrices with 1254/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 4 Aug 2015 17:32:58 +0000 (12:32 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 4 Aug 2015 17:32:58 +0000 (12:32 -0500)
different sparsity patterns.

include/deal.II/lac/sparse_matrix.h

index e234a037465d2eafa9b136d4a5ab646c6b350d25..6485675fa573b78a4677d3ec2c75be52a3d2d9bd 100644 (file)
@@ -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
    */

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.