From b8491f202d42263904b98b35e490a6917978d0a5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 27 Mar 2013 14:02:32 +0000 Subject: [PATCH] Improve error message. git-svn-id: https://svn.dealii.org/trunk@29070 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/trilinos_vector_base.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 172bc10777..fa32d9de6c 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -189,9 +189,13 @@ namespace TrilinosWrappers DeclException3 (ExcAccessToNonLocalElement, int, int, int, << "You tried to access element " << arg1 - << " of a distributed vector, but only elements " + << " of a distributed vector, but it is not stored on " + << "the current processor. Note: the elements stored " + << "on the current processor are within the range " << arg2 << " through " << arg3 - << " are stored locally and can be accessed."); + << " but Trilinos vectors need not store contiguous " + << "ranges on each processor, and not every element in " + << "this range may in fact be stored locally."); private: /** -- 2.39.5