Skip to content
Snippets Groups Projects
Commit 5738240c authored by mattijs's avatar mattijs
Browse files

BUG: globalIndex: whichProcID bug

parent 5154e387
Branches
Tags
No related merge requests found
......@@ -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."
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment