From dce78840a937090da0a0a5ce55812da87db4c4e6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 4 Mar 2015 07:33:12 -0600 Subject: [PATCH] One more exception conversion. --- include/deal.II/numerics/matrix_tools.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/include/deal.II/numerics/matrix_tools.h b/include/deal.II/numerics/matrix_tools.h index 26b1bf60cf..7dfc46796e 100644 --- a/include/deal.II/numerics/matrix_tools.h +++ b/include/deal.II/numerics/matrix_tools.h @@ -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."); } -- 2.39.5