mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: globalIndex: whichProcID bug
This commit is contained in:
@ -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."
|
||||
|
||||
Reference in New Issue
Block a user