Go to the documentation of this file.
56 Istream&
operator>>(Istream& is, globalIndex& gi);
57 Ostream&
operator<<(Ostream& os,
const globalIndex& gi);
globalIndex()
Construct null.
label localSize() const
My local size.
bool isLocal(const label i) const
Is on local processor.
friend Istream & operator>>(Istream &is, globalIndex &gi)
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.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label offset(const label procI) const
Start of procI data.
friend Ostream & operator<<(Ostream &os, const globalIndex &gi)
Ostream & operator<<(Ostream &, const edgeMesh &)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
label toLocal(const label i) const
From global to local on current processor.
labelList & offsets()
Change after construction.
static int & msgType()
Message tag of standard messages.
commsTypes
Types of communications.
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.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static void gather(const labelUList &offsets, const label comm, const labelList &procIDs, const UList< Type > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes commsType=Pstream::nonBlocking)
Collect data in processor order on master (== procIDs[0]).
static void scatter(const labelUList &offsets, const label comm, const labelList &procIDs, const UList< Type > &allFld, UList< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes commsType=Pstream::nonBlocking)
Distribute data in processor order. Requires fld to be sized!
label toGlobal(const label i) const
From local to global.
labelList offsets_
Start of procI. Size is nProcs()+1. (so like CompactListList)