From: Wolfgang Bangerth Date: Sun, 26 Jun 2011 03:07:22 +0000 (+0000) Subject: Improve error message. X-Git-Tag: v8.0.0~3903 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8db2b56dce4b2aaa65eb244f3cbe0d375a2f1b59;p=dealii.git Improve error message. git-svn-id: https://svn.dealii.org/trunk@23862 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/trilinos_vector_base.h b/deal.II/include/deal.II/lac/trilinos_vector_base.h index c99d4b36b8..58904f82fe 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -1168,7 +1168,10 @@ namespace TrilinosWrappers dynamic_cast(&vector_partitioner().Comm())->GetMpiComm(), double_mode, result); - Assert(result.max-result.min<1e-5, ExcTrilinosError(0)); + Assert(result.max-result.min<1e-5, + ExcMessage ("Not all processors agree whether the last operation on " + "this vector was an addition or a set operation. This will " + "prevent the compress() operation from succeeding.")); # endif #endif