From: Wolfgang Bangerth Date: Sat, 21 Dec 2013 04:56:24 +0000 (+0000) Subject: Improve an error message. X-Git-Tag: v8.2.0-rc1~1150 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9240bf06f9de27996c3163c762bc15bf0b12cfb;p=dealii.git Improve an error message. git-svn-id: https://svn.dealii.org/trunk@32075 0785d39b-7218-0410-832d-ea1e28bc413d --- 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() /