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

BUG: globalIndex: whichProcID bug

parent 5154e387
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ inline Foam::label Foam::globalIndex::toLocal(const label i) const ...@@ -122,7 +122,7 @@ inline Foam::label Foam::globalIndex::toLocal(const label i) const
inline Foam::label Foam::globalIndex::whichProcID(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)") FatalErrorIn("globalIndex::whichProcID(const label)")
<< "Global " << i << " does not belong on any processor." << "Global " << i << " does not belong on any processor."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment