BUG: globalIndex: whichProcID bug

This commit is contained in:
mattijs
2013-05-03 11:13:12 +01:00
parent 5154e38761
commit 5738240cf0

View File

@ -122,7 +122,7 @@ inline Foam::label Foam::globalIndex::toLocal(const label i) const
inline Foam::label Foam::globalIndex::whichProcID(const label i) const
{
if (i < 0 || i >= offsets_.size()-1)
if (i < 0 || i >= size())
{
FatalErrorIn("globalIndex::whichProcID(const label)")
<< "Global " << i << " does not belong on any processor."