Go to the documentation of this file.
50 return offsets_[procI];
56 return offsets_[procI+1] - offsets_[procI];
68 return offsets_.last();
78 return i + offsets_[procI];
91 return i >= offsets_[procI] && i < offsets_[procI+1];
104 label localI = i - offsets_[procI];
106 if (localI < 0 || i >= offsets_[procI+1])
109 <<
"Global " << i <<
" does not belong on processor "
110 << procI <<
endl <<
"Offsets:" << offsets_
125 if (i < 0 || i >= size())
128 <<
"Global " << i <<
" does not belong on any processor."
129 <<
" Offsets:" << offsets_
globalIndex()
Construct null.
label localSize() const
My local size.
bool isLocal(const label i) const
Is on local processor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple container for copying or transferring objects of type <T>.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label findLower(const ListType &, typename ListType::const_reference, const label start, const BinaryOp &bop)
Find last element < given value in sorted list and return index,.
label offset(const label procI) const
Start of procI data.
errorManip< error > abort(error &err)
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
label toLocal(const label i) const
From global to local on current processor.
labelList & offsets()
Change after construction.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label size() const
Global sum of localSizes.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label whichProcID(const label i) const
Which processor does global come from? Binary search.
Various functions to operate on Lists.
label toGlobal(const label i) const
From local to global.