]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Improve an error message.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 21 Dec 2013 04:56:24 +0000 (04:56 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 21 Dec 2013 04:56:24 +0000 (04:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@32075 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/numerics/matrix_tools.cc

index 74f5dcbba1125adf8d294bd537ab7aef22b245e0..6a726729c127a62bb53e14b7e8c6616667c20e93 100644 (file)
@@ -2033,7 +2033,11 @@ namespace MatrixTools
                 Assert ((p != matrix.end(row))
                         &&
                         (p->column() == dof_number),
-                        ExcInternalError());
+                        ExcMessage("This function is trying to access an element of the "
+                            "matrix that doesn't seem to exist. Are you using a "
+                            "nonsymmetric sparsity pattern? If so, you are not "
+                            "allowed to set the eliminate_column argument of this "
+                            "function, see the documentation."));
 
                 // correct right hand side
                 right_hand_side(row) -= p->value() /

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.