From c456383aa19ef71b21a6792c770f7ab6687b19dd Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 21 Dec 2013 04:56:24 +0000 Subject: [PATCH] Improve an error message. git-svn-id: https://svn.dealii.org/trunk@32075 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/numerics/matrix_tools.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deal.II/source/numerics/matrix_tools.cc b/deal.II/source/numerics/matrix_tools.cc index 74f5dcbba1..6a726729c1 100644 --- a/deal.II/source/numerics/matrix_tools.cc +++ b/deal.II/source/numerics/matrix_tools.cc @@ -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() / -- 2.39.5