<< "You tried to access element " << arg1
<< " of a distributed vector, but this element is not "
<< "stored on the current processor. Note: The range of "
- << "locally owned elements is " << arg2 << " to " << arg3
- << ", and there are " << arg4 << " ghost elements "
+ << "locally owned elements is [" << arg2 << "," << arg3
+ << "], and there are " << arg4 << " ghost elements "
<< "that this vector can access."
<< "\n\n"
<< "A common source for this kind of problem is that you "
partitioner->ghost_indices().is_element(global_index),
ExcAccessToNonLocalElement(global_index,
partitioner->local_range().first,
- partitioner->local_range().second,
+ partitioner->local_range().second - 1,
partitioner->ghost_indices().n_elements()));
// do not allow reading a vector which is not in ghost mode
Assert(partitioner->in_local_range(global_index) ||
partitioner->ghost_indices().is_element(global_index),
ExcAccessToNonLocalElement(global_index,
partitioner->local_range().first,
- partitioner->local_range().second,
+ partitioner->local_range().second - 1,
partitioner->ghost_indices().n_elements()));
// we would like to prevent reading ghosts from a vector that does not
// have them imported, but this is not possible because we might be in a
int,
int,
<< "You tried to access element " << arg1
- << " of a distributed vector, but only elements " << arg2 << " through "
- << arg3 << " are stored locally and can be accessed."
+ << " of a distributed vector, but only elements in range [" << arg2
+ << "," << arg3 << "] are stored locally and can be accessed."
<< "\n\n"
<< "A common source for this kind of problem is that you "
<< "are passing a 'fully distributed' vector into a function "
size_type,
<< "You tried to access element (" << arg1 << "/" << arg2
<< ")"
- << " of a distributed matrix, but only rows " << arg3
- << " through " << arg4
- << " are stored locally and can be accessed.");
+ << " of a distributed matrix, but only rows in range ["
+ << arg3 << "," << arg4
+ << "] are stored locally and can be accessed.");
/**
* Exception
size_type,
<< "You tried to access element (" << arg1 << "/" << arg2
<< ")"
- << " of a distributed matrix, but only rows " << arg3
- << " through " << arg4
- << " are stored locally and can be accessed.");
+ << " of a distributed matrix, but only rows in range ["
+ << arg3 << "," << arg4
+ << "] are stored locally and can be accessed.");
/**
* Exception
<< " of a distributed vector, but this element is not stored "
<< "on the current processor. Note: There are " << arg2
<< " elements stored "
- << "on the current processor from within the range " << arg3
- << " through " << arg4
- << " but Trilinos vectors need not store contiguous "
+ << "on the current processor from within the range [" << arg3 << ","
+ << arg4 << "] but Trilinos vectors need not store contiguous "
<< "ranges on each processor, and not every element in "
<< "this range may in fact be stored locally."
<< "\n\n"