]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide ExcSourceEqualsDestination with a message. 5227/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 12 Oct 2017 15:11:10 +0000 (09:11 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 12 Oct 2017 15:11:10 +0000 (09:11 -0600)
include/deal.II/lac/chunk_sparse_matrix.h
include/deal.II/lac/full_matrix.h
include/deal.II/lac/petsc_matrix_base.h
include/deal.II/lac/sparse_matrix.h
include/deal.II/lac/trilinos_sparse_matrix.h
include/deal.II/lac/trilinos_sparsity_pattern.h

index 9bfdd775a853f5852f298c7ca1899f8c275c911f..0f9b773f3cee8ce4681a06306af1f9b05df99553 100644 (file)
@@ -1317,7 +1317,10 @@ public:
   /**
    * Exception
    */
-  DeclException0 (ExcSourceEqualsDestination);
+  DeclExceptionMsg (ExcSourceEqualsDestination,
+                    "You are attempting an operation on two matrices that "
+                    "are the same object, but the operation requires that the "
+                    "two objects are in fact different.");
   //@}
 private:
   /**
index ccc0914faea513ea44286f412dc1323ee54a6624..351e2dd6c165da0392ff41df32137e410aac0d1b 100644 (file)
@@ -1124,7 +1124,10 @@ public:
   /**
    * Exception
    */
-  DeclException0 (ExcSourceEqualsDestination);
+  DeclExceptionMsg (ExcSourceEqualsDestination,
+                    "You are attempting an operation on two matrices that "
+                    "are the same object, but the operation requires that the "
+                    "two objects are in fact different.");
   /**
    * Exception
    */
index 1a515ac24db25db1e41cdeb04d93c57858c8da64..5defe0901c02c0d7aa9856faab79eedeeeaeaf07 100644 (file)
@@ -871,7 +871,10 @@ namespace PETScWrappers
     /**
      * Exception
      */
-    DeclException0 (ExcSourceEqualsDestination);
+    DeclExceptionMsg (ExcSourceEqualsDestination,
+                      "You are attempting an operation on two matrices that "
+                      "are the same object, but the operation requires that the "
+                      "two objects are in fact different.");
 
     /**
      * Exception.
index 313a1444e280dff90a376e3d798341e8b2ac57e4..69980e16f750ab0029112432e10667b22bf9381a 100644 (file)
@@ -1565,7 +1565,10 @@ public:
   /**
    * Exception
    */
-  DeclException0 (ExcSourceEqualsDestination);
+  DeclExceptionMsg (ExcSourceEqualsDestination,
+                    "You are attempting an operation on two matrices that "
+                    "are the same object, but the operation requires that the "
+                    "two objects are in fact different.");
   //@}
 
 protected:
index 263d3feab2bbdc3c313b677c15f4c09486dd6a90..fb31590069bae9b66eb5990bf141e77e835b2956 100644 (file)
@@ -1920,7 +1920,10 @@ namespace TrilinosWrappers
     /**
      * Exception
      */
-    DeclException0 (ExcSourceEqualsDestination);
+    DeclExceptionMsg (ExcSourceEqualsDestination,
+                      "You are attempting an operation on two matrices that "
+                      "are the same object, but the operation requires that the "
+                      "two objects are in fact different.");
 
     /**
      * Exception
index dc42c69243a407245ef1a604843b8c5f40ab51ea..be6fb960df0034ffa679e53ed6e1bf1c99c80e6b 100644 (file)
@@ -1113,7 +1113,10 @@ namespace TrilinosWrappers
     /**
      * Exception
      */
-    DeclException0 (ExcSourceEqualsDestination);
+    DeclExceptionMsg (ExcSourceEqualsDestination,
+                      "You are attempting an operation on two sparsity patterns that "
+                      "are the same object, but the operation requires that the "
+                      "two objects are in fact different.");
 
     /**
      * 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.