From: bangerth Date: Sun, 26 Jun 2011 03:07:22 +0000 (+0000) Subject: Improve error message. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e306e973fb2eae4e8a47fceb5ddde7bc3887c49;p=dealii-svn.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