]> https://gitweb.dealii.org/ - dealii.git/commitdiff
One more exception conversion. 640/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Mar 2015 13:33:12 +0000 (07:33 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 5 Mar 2015 02:31:35 +0000 (20:31 -0600)
include/deal.II/numerics/matrix_tools.h

index 26b1bf60cfd94bfd8c553e2ea0e1fd650b88ff83..7dfc46796e5ed9dd92e8f180c695ca2b30348866 100644 (file)
@@ -578,7 +578,15 @@ namespace MatrixCreator
   /**
    * Exception
    */
-  DeclException0 (ExcComponentMismatch);
+  DeclExceptionMsg (ExcComponentMismatch,
+                    "You are providing either a right hand side function or a "
+                    "coefficient with a number of vector components that is "
+                    "inconsistent with the rest of the arguments. If you do "
+                    "provide a coefficient or right hand side function, then "
+                    "it either needs to have as many components as the finite "
+                    "element in use, or only a single vector component. In "
+                    "the latter case, the same value will be taken for "
+                    "each vector component of the finite element.");
 }
 
 
@@ -972,7 +980,11 @@ namespace MatrixTools
   /**
    * Exception
    */
-  DeclException0 (ExcBlocksDontMatch);
+  DeclExceptionMsg (ExcBlocksDontMatch,
+                    "You are providing a matrix whose subdivision into "
+                    "blocks in either row or column direction does not use "
+                    "the same blocks sizes as the solution vector or "
+                    "right hand side vectors, respectively.");
 }
 
 

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.