Calculates a unique integer (label so might not have enough room - 2G max) for processor + local index. E.g. More...
Classes | |
class | const_iterator |
Forward input iterator with const access. More... | |
Public Types | |
enum | accessType : char { OFFSETS, SIZES } |
Disambiguation tag (list construction dispatch) More... | |
Public Member Functions | |
globalIndex ()=default | |
Default construct. More... | |
globalIndex (const labelUList &listOffsets) | |
globalIndex (labelList &&listOffsets) | |
globalIndex (const labelUList &offsetsOrSizes, enum accessType accType) | |
globalIndex (const label localSize) | |
Construct from local size. More... | |
globalIndex (const label localSize, const int tag, const label comm, const bool parallel) | |
Construct from local size. More... | |
globalIndex (Istream &is) | |
bool | empty () const |
Check for default constructed or global sum == 0. More... | |
label | size () const |
Global sum of localSizes. More... | |
labelList | sizes () const |
The local sizes. More... | |
const labelUList | localStarts () const |
The local starts. More... | |
label | maxSize () const |
Global max of localSizes. More... | |
const labelList & | offsets () const noexcept |
Const-access to the offsets. More... | |
label | nProcs () const noexcept |
The number of processors covered by the offsets. More... | |
labelRange | allProcs () const noexcept |
Range of process indices for all addressed offsets (processes) More... | |
labelRange | subProcs () const noexcept |
Range of process indices for addressed sub-offsets (processes) More... | |
labelList & | offsets () noexcept |
Write-access to the offsets, for changing after construction. More... | |
void | reset (const label localSize) |
Reset from local size. More... | |
void | reset (const label localSize, const int tag, const label comm, const bool parallel) |
Reset from local size. More... | |
void | reset (const labelUList &sizes, const bool checkOverflow=false) |
void | setLocalSize (const label proci, const label len) |
Alter local size for given processor. More... | |
label | localStart () const |
My local start. More... | |
label | localSize () const |
My local size. More... | |
label | maxNonLocalSize () const |
The max of localSizes, excluding current processor. More... | |
labelRange | range () const |
Return start/size range of local processor data. More... | |
List< labelRange > | ranges () const |
Return start/size ranges for all data. More... | |
bool | isLocal (const label i) const |
Is on local processor. More... | |
label | toGlobal (const label i) const |
From local to global index. More... | |
labelList | toGlobal (const labelUList &labels) const |
From local to global index. More... | |
void | inplaceToGlobal (labelList &labels) const |
From local to global index (inplace) More... | |
label | toLocal (const label i) const |
From global to local on current processor. More... | |
label | offset (const label proci) const |
Start of proci data. More... | |
label | localStart (const label proci) const |
Start of proci data. More... | |
label | localSize (const label proci) const |
Size of proci data. More... | |
label | maxNonLocalSize (const label proci) const |
The max of localSizes, excluding the specified processor. More... | |
labelRange | range (const label proci) const |
Return start/size range of proci data. More... | |
bool | isLocal (const label proci, const label i) const |
Is on processor proci. More... | |
label | toGlobal (const label proci, const label i) const |
From local to global on proci. More... | |
labelList | toGlobal (const label proci, const labelUList &labels) const |
From local to global on proci. More... | |
void | inplaceToGlobal (const label proci, labelList &labels) const |
From local to global index on proci (inplace) More... | |
label | toLocal (const label proci, const label i) const |
From global to local on proci. More... | |
label | whichProcID (const label i) const |
Which processor does global come from? Binary search. More... | |
const_iterator | cbegin () const noexcept |
A const_iterator set to the beginning. More... | |
const const_iterator | cend () const noexcept |
A const_iterator set to beyond the end. More... | |
const_iterator | begin () const noexcept |
A const_iterator set to the beginning. More... | |
const const_iterator | end () const noexcept |
A const_iterator set to beyond the end. More... | |
template<class ProcIDsContainer , class Type > | |
void | gather (const label comm, const ProcIDsContainer &procIDs, const UList< Type > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes commsType=Pstream::commsTypes::nonBlocking) const |
Collect data in processor order on master (== procIDs[0]). More... | |
template<class Type > | |
void | gather (const UList< Type > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking, const label comm=UPstream::worldComm) const |
Collect data in processor order on master. More... | |
template<class Type , class Addr > | |
void | gather (const IndirectListBase< Type, Addr > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::scheduled, const label comm=UPstream::worldComm) const |
Collect data indirectly in processor order on master. More... | |
template<class ProcIDsContainer , class Type > | |
void | gather (const label comm, const ProcIDsContainer &procIDs, List< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes commsType=Pstream::commsTypes::nonBlocking) const |
template<class Type > | |
void | gather (List< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking, const label comm=UPstream::worldComm) const |
Inplace collect data in processor order on master. More... | |
template<class Type , class OutputContainer = List<Type>> | |
void | mpiGather (const UList< Type > &sendData, OutputContainer &allValues, const label comm=UPstream::worldComm) const |
Collect contiguous data using a MPI_Gatherv call. More... | |
template<class Type , class OutputContainer = List<Type>> | |
OutputContainer | mpiGather (const UList< Type > &sendData, const label comm=UPstream::worldComm) const |
Collect contiguous data using a MPI_Gatherv call. More... | |
template<class ProcIDsContainer , class Type > | |
void | scatter (const label comm, const ProcIDsContainer &procIDs, const UList< Type > &allFld, UList< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes commsType=Pstream::commsTypes::nonBlocking) const |
Distribute data in processor order. Requires fld to be sized! More... | |
template<class Type > | |
void | scatter (const UList< Type > &allFld, UList< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking, const label comm=UPstream::worldComm) const |
Distribute data in processor order. Requires fld to be sized! More... | |
template<class Type , class CombineOp > | |
void | get (List< Type > &allFld, const labelUList &globalIds, const CombineOp &cop, const label comm=UPstream::worldComm, const int tag=UPstream::msgType()) const |
template<class SubListType > | |
Foam::labelList | calcListOffsets (const List< SubListType > &lists, const bool checkOverflow) |
Static Public Member Functions | |
static labelList | calcOffsets (const labelUList &localSizes, const bool checkOverflow=false) |
template<class SubListType > | |
static labelList | calcListOffsets (const List< SubListType > &lists, const bool checkOverflow=false) |
static List< labelRange > | calcRanges (const labelUList &localSizes, const bool checkOverflow=false) |
template<class ProcIDsContainer , class Type > | |
static void | gather (const labelUList &offsets, const label comm, const ProcIDsContainer &procIDs, const UList< Type > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking) |
Collect data in processor order on master (== procIDs[0]). More... | |
template<class Type , class Addr > | |
static void | gather (const labelUList &offsets, const label comm, const UList< int > &procIDs, const IndirectListBase< Type, Addr > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::scheduled) |
Collect indirect data in processor order on master. More... | |
template<class ProcIDsContainer , class Type > | |
static void | gather (const labelUList &offsets, const label comm, const ProcIDsContainer &procIDs, List< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking) |
template<class Type > | |
static void | gatherOp (const UList< Type > &fld, List< Type > &allFld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking) |
Collect data in processor order on master. More... | |
template<class Type > | |
static void | gatherOp (List< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking) |
Inplace collect data in processor order on master. More... | |
template<class ProcIDsContainer , class Type > | |
static void | scatter (const labelUList &offsets, const label comm, const ProcIDsContainer &procIDs, const UList< Type > &allFld, UList< Type > &fld, const int tag=UPstream::msgType(), const Pstream::commsTypes=Pstream::commsTypes::nonBlocking) |
Distribute data in processor order. Requires fld to be sized! More... | |
Friends | |
Istream & | operator>> (Istream &is, globalIndex &gi) |
Ostream & | operator<< (Ostream &os, const globalIndex &gi) |
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local index. E.g.
globalIndex globalFaces(mesh.nFaces()); label globalFacei = globalFaces.toGlobal(facei);
Definition at line 68 of file globalIndex.H.
enum accessType : char |
Disambiguation tag (list construction dispatch)
Enumerator | |
---|---|
OFFSETS | |
SIZES |
Definition at line 93 of file globalIndex.H.
|
default |
Default construct.
|
inlineexplicit |
Copy construct from a list of offsets. No communication required
Definition at line 35 of file globalIndexI.H.
References UList< T >::size().
|
inlineexplicit |
Move construct from a list of offsets. No communication required
Definition at line 47 of file globalIndexI.H.
References UList< T >::size().
|
inline |
Copy construct from a list of offsets or sizes. No communication required
Definition at line 63 of file globalIndexI.H.
References reset(), and UList< T >::size().
|
inlineexplicit |
Construct from local size.
Communication with default communicator and message tag.
Definition at line 80 of file globalIndexI.H.
References globalIndex::localSize(), and globalIndex::reset().
|
inline |
Construct from local size.
Communication with given communicator and message tag, unless parallel == false
tag | message tag |
comm | communicator |
parallel | use parallel comms |
Definition at line 87 of file globalIndexI.H.
References reset().
|
explicit |
Construct from Istream. No communication required
Definition at line 111 of file globalIndex.C.
|
inline |
Check for default constructed or global sum == 0.
Definition at line 100 of file globalIndexI.H.
|
inline |
Global sum of localSizes.
Definition at line 151 of file globalIndexI.H.
Referenced by nearWallFields::calcAddressing(), distributedTriSurfaceMesh::globalSize(), globalIndex::mpiGather(), regionSplit::nRegions(), SprayCloud< Foam::DSMCCloud >::penetration(), and fileWriter::writeProcIDs().
Foam::labelList sizes | ( | ) | const |
The local sizes.
Definition at line 265 of file globalIndex.C.
References Foam::HashTableOps::values().
|
inline |
The local starts.
Definition at line 141 of file globalIndexI.H.
References UList< T >::null().
|
inline |
Global max of localSizes.
Definition at line 193 of file globalIndexI.H.
Referenced by Foam::ensightOutput::writeCloudPositions(), and Foam::ensightOutput::Detail::writeFieldContent().
|
inlinenoexcept |
Const-access to the offsets.
Definition at line 129 of file globalIndexI.H.
|
inlinenoexcept |
The number of processors covered by the offsets.
Definition at line 106 of file globalIndexI.H.
Referenced by globalIndex::mpiGather().
|
inlinenoexcept |
Range of process indices for all addressed offsets (processes)
Definition at line 113 of file globalIndexI.H.
|
inlinenoexcept |
Range of process indices for addressed sub-offsets (processes)
Definition at line 121 of file globalIndexI.H.
Referenced by Foam::ensightOutput::writeCloudField(), Foam::ensightOutput::writeCloudPositions(), Foam::ensightOutput::Detail::writeFieldContent(), Foam::vtk::writeListParallel(), and Foam::vtk::writeListsParallel().
|
inlinenoexcept |
Write-access to the offsets, for changing after construction.
Definition at line 135 of file globalIndexI.H.
|
inline |
Reset from local size.
Does communication with default communicator and message tag.
Definition at line 157 of file globalIndexI.H.
References UPstream::msgType(), reset(), and UPstream::worldComm.
Referenced by globalMeshData::globalEdgeNumbering(), globalIndex::globalIndex(), globalMeshData::globalPointNumbering(), distributedTriSurfaceMesh::globalTris(), Foam::ensightOutput::writeCloudField(), and Foam::ensightOutput::Detail::writeFieldContent().
void reset | ( | const label | localSize, |
const int | tag, | ||
const label | comm, | ||
const bool | parallel | ||
) |
Reset from local size.
Does communication with given communicator and message tag, unless parallel == false
tag | message tag |
comm | communicator |
parallel | use parallel comms |
Definition at line 180 of file globalIndex.C.
References Pstream::gatherList(), UPstream::myProcNo(), UPstream::nProcs(), reset(), Pstream::scatterList(), and Foam::Zero.
void reset | ( | const labelUList & | sizes, |
const bool | checkOverflow = false |
||
) |
Reset from list of local sizes, with optional check for label overflow. No communication required
Definition at line 211 of file globalIndex.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), Foam::labelMax, Foam::nl, and UList< T >::size().
void setLocalSize | ( | const label | proci, |
const label | len | ||
) |
Alter local size for given processor.
Definition at line 247 of file globalIndex.C.
References delta.
|
inline |
My local start.
Definition at line 175 of file globalIndexI.H.
References UPstream::myProcNo().
Referenced by viewFactor::calculate(), cellCellStencil::globalCellCells(), lduPrimitiveMesh::globalCellCells(), globalIndex::mpiGather(), patchMeshWriter::writeGeometry(), polyWriter::writeLineGeometry(), polyWriter::writePolyGeometry(), and patchMeshWriter::writePolys().
|
inline |
My local size.
Definition at line 187 of file globalIndexI.H.
References UPstream::myProcNo().
Referenced by createShellMesh::calcPointRegions(), viewFactor::calculate(), mapDistributeBase::exchangeAddressing(), cellCellStencil::globalCellCells(), globalIndex::globalIndex(), globalIndex::mpiGather(), regionSplit::nLocalRegions(), SprayCloud< Foam::DSMCCloud >::penetration(), Foam::ensightOutput::writeCloudField(), Foam::ensightOutput::writeCloudPositions(), Foam::ensightOutput::Detail::writeFieldContent(), Foam::vtk::writeListParallel(), Foam::vtk::writeListsParallel(), and fileWriter::writeProcIDs().
|
inline |
The max of localSizes, excluding current processor.
Definition at line 200 of file globalIndexI.H.
References UPstream::myProcNo().
Referenced by Foam::ensightOutput::writeCloudField(), Foam::vtk::writeListParallel(), and Foam::vtk::writeListsParallel().
|
inline |
Return start/size range of local processor data.
Definition at line 212 of file globalIndexI.H.
References UPstream::myProcNo(), and range.
Foam::List< Foam::labelRange > ranges | ( | ) | const |
Return start/size ranges for all data.
Definition at line 288 of file globalIndex.C.
References Foam::HashTableOps::values().
|
inline |
Is on local processor.
Definition at line 224 of file globalIndexI.H.
References UPstream::myProcNo().
Referenced by decompositionMethod::calcCellCells(), mapDistributeBase::calcCompactAddressing(), addPatchCellLayer::calcExtrudeInfo(), and mapDistributeBase::renumber().
|
inline |
From local to global index.
Definition at line 240 of file globalIndexI.H.
References UPstream::myProcNo().
Referenced by nearWallFields::calcAddressing(), decompositionMethod::calcCellCells(), createShellMesh::calcPointRegions(), viewFactor::calculate(), cellCellStencil::globalCellCells(), addPatchCellLayer::globalEdgeFaces(), viewFactor::insertMatrixElements(), inverseDistance::markDonors(), globalMeshData::mergePoints(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), regionSplit2D::regionSplit2D(), addPatchCellLayer::setRefinement(), and cellVolumeWeight::update().
|
inline |
From local to global index.
Definition at line 260 of file globalIndexI.H.
References UPstream::myProcNo().
|
inline |
From local to global index (inplace)
Definition at line 283 of file globalIndexI.H.
References UPstream::myProcNo().
Referenced by faceAreaWeightAMI2D::calculate(), and faceAreaWeightAMI::calculate().
|
inline |
From global to local on current processor.
FatalError if not on local processor.
Definition at line 305 of file globalIndexI.H.
References UPstream::myProcNo().
Referenced by fvMeshPrimitiveLduAddressing::addAddressing(), decompositionMethod::calcCellCells(), mapDistributeBase::calcCompactAddressing(), addPatchCellLayer::calcExtrudeInfo(), distributedTriSurfaceMesh::localQueries(), and mapDistributeBase::renumber().
|
inline |
Start of proci data.
Definition at line 163 of file globalIndexI.H.
Referenced by SprayCloud< Foam::DSMCCloud >::penetration(), and Foam::vtk::writeListParallel().
|
inline |
Start of proci data.
Definition at line 169 of file globalIndexI.H.
|
inline |
Size of proci data.
Definition at line 181 of file globalIndexI.H.
Foam::label maxNonLocalSize | ( | const label | proci | ) | const |
The max of localSizes, excluding the specified processor.
Definition at line 314 of file globalIndex.C.
References Foam::max().
|
inline |
Return start/size range of proci data.
Definition at line 206 of file globalIndexI.H.
|
inline |
Is on processor proci.
Definition at line 218 of file globalIndexI.H.
|
inline |
From local to global on proci.
Definition at line 231 of file globalIndexI.H.
|
inline |
From local to global on proci.
Definition at line 247 of file globalIndexI.H.
|
inline |
From local to global index on proci (inplace)
Definition at line 269 of file globalIndexI.H.
|
inline |
From global to local on proci.
Definition at line 290 of file globalIndexI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
|
inline |
Which processor does global come from? Binary search.
Definition at line 311 of file globalIndexI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::findLower().
Referenced by fvMeshPrimitiveLduAddressing::addAddressing(), mapDistributeBase::calcCompactAddressing(), addPatchCellLayer::calcExtrudeInfo(), distributedTriSurfaceMesh::findNearest(), distributedTriSurfaceMesh::localQueries(), and mapDistributeBase::renumber().
|
inlinenoexcept |
A const_iterator set to the beginning.
Definition at line 437 of file globalIndexI.H.
|
inlinenoexcept |
A const_iterator set to beyond the end.
Definition at line 444 of file globalIndexI.H.
|
inlinenoexcept |
A const_iterator set to the beginning.
Definition at line 451 of file globalIndexI.H.
|
inlinenoexcept |
A const_iterator set to beyond the end.
Definition at line 458 of file globalIndexI.H.
|
static |
Calculate offsets from a list of local sizes, with optional check for label overflow
Definition at line 36 of file globalIndex.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), Foam::labelMax, Foam::nl, UList< T >::size(), and Foam::HashTableOps::values().
|
static |
Calculate offsets from list of lists, with optional check for label overflow
|
static |
Calculate ranges (offset/size) from a list of local sizes, with optional check for label overflow
Definition at line 74 of file globalIndex.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), Foam::labelMax, Foam::nl, UList< T >::size(), and Foam::HashTableOps::values().
|
static |
Collect data in processor order on master (== procIDs[0]).
Offsets needed on master only.
comm | communicator |
Definition at line 75 of file globalIndexTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fld, UList< T >::last(), Foam::blockMeshTools::read(), List< T >::resize_nocopy(), and Foam::vtk::write().
Referenced by globalIndex::gather(), PatchTools::gatherAndMerge(), and GAMGAgglomeration::procAgglomerateRestrictAddressing().
|
static |
Collect indirect data in processor order on master.
Offsets needed on master only.
comm | communicator |
Definition at line 230 of file globalIndexTemplates.C.
References Foam::exit(), Foam::FatalError, fld, UList< T >::last(), List< T >::resize_nocopy(), UList< T >::size(), and WarningInFunction.
|
inline |
Collect data in processor order on master (== procIDs[0]).
Offsets needed on master only.
comm | communicator |
Definition at line 413 of file globalIndex.H.
References fld, and globalIndex::gather().
void gather | ( | const UList< Type > & | fld, |
List< Type > & | allFld, | ||
const int | tag = UPstream::msgType() , |
||
const Pstream::commsTypes | commsType = Pstream::commsTypes::nonBlocking , |
||
const label | comm = UPstream::worldComm |
||
) | const |
Collect data in processor order on master.
Does communication with default communicator and message tag.
comm | communicator |
Definition at line 294 of file globalIndexTemplates.C.
References fld.
void gather | ( | const IndirectListBase< Type, Addr > & | fld, |
List< Type > & | allFld, | ||
const int | tag = UPstream::msgType() , |
||
const Pstream::commsTypes | commsType = Pstream::commsTypes::scheduled , |
||
const label | comm = UPstream::worldComm |
||
) | const |
Collect data indirectly in processor order on master.
Does communication with default communicator and message tag.
comm | communicator |
Definition at line 316 of file globalIndexTemplates.C.
References fld.
|
static |
Inplace collect in processor order on master (== procIDs[0]). Needs offsets only on master.
comm | communicator |
Definition at line 339 of file globalIndexTemplates.C.
References fld.
|
inline |
Inplace collect in processor order on master (== procIDs[0]). Needs offsets only on master.
comm | communicator |
Definition at line 467 of file globalIndex.H.
References fld, and globalIndex::gather().
void gather | ( | List< Type > & | fld, |
const int | tag = UPstream::msgType() , |
||
const Pstream::commsTypes | commsType = Pstream::commsTypes::nonBlocking , |
||
const label | comm = UPstream::worldComm |
||
) | const |
Inplace collect data in processor order on master.
Does communication with default communicator and message tag. After the gather, the field is zero-sized on the slaves.
comm | communicator |
Definition at line 361 of file globalIndexTemplates.C.
References fld.
void mpiGather | ( | const UList< Type > & | sendData, |
OutputContainer & | allValues, | ||
const label | comm = UPstream::worldComm |
||
) | const |
Collect contiguous data using a MPI_Gatherv call.
comm | communicator |
Definition at line 393 of file globalIndexTemplates.C.
References Foam::abort(), UList< T >::cdata_bytes(), Foam::FatalError, FatalErrorInFunction, globalIndex::localSize(), globalIndex::localStart(), Foam::nl, globalIndex::nProcs(), List< T >::resize(), List< T >::resize_nocopy(), globalIndex::size(), and UList< T >::size_bytes().
OutputContainer mpiGather | ( | const UList< Type > & | sendData, |
const label | comm = UPstream::worldComm |
||
) | const |
Collect contiguous data using a MPI_Gatherv call.
comm | communicator |
Definition at line 459 of file globalIndexTemplates.C.
|
static |
Collect data in processor order on master.
Does communication with default communicator and message tag.
Definition at line 472 of file globalIndexTemplates.C.
References fld.
Referenced by sampledSet::gather(), mergedSurf::merge(), and surfaceWriter::mergeFieldTemplate().
|
static |
Inplace collect data in processor order on master.
Does communication with default communicator and message tag. After the gather, the field is zero-sized on the slaves.
Definition at line 485 of file globalIndexTemplates.C.
References fld.
|
static |
Distribute data in processor order. Requires fld to be sized!
comm | communicator |
Definition at line 497 of file globalIndexTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fld, Foam::blockMeshTools::read(), and Foam::vtk::write().
Referenced by globalIndex::scatter().
|
inline |
Distribute data in processor order. Requires fld to be sized!
comm | communicator |
Definition at line 554 of file globalIndex.H.
References fld, and globalIndex::scatter().
void scatter | ( | const UList< Type > & | allFld, |
UList< Type > & | fld, | ||
const int | tag = UPstream::msgType() , |
||
const Pstream::commsTypes | commsType = Pstream::commsTypes::nonBlocking , |
||
const label | comm = UPstream::worldComm |
||
) | const |
Distribute data in processor order. Requires fld to be sized!
Does communication with default communicator and message tag.
comm | communicator |
Definition at line 649 of file globalIndexTemplates.C.
References fld.
void get | ( | List< Type > & | allFld, |
const labelUList & | globalIds, | ||
const CombineOp & | cop, | ||
const label | comm = UPstream::worldComm , |
||
const int | tag = UPstream::msgType() |
||
) | const |
Get (potentially remote) data. Elements required given as global indices
comm | communicator |
Definition at line 672 of file globalIndexTemplates.C.
References PstreamBuffers::finishedSends(), fld, forAll, CompactListList< T, Container >::offsets(), os(), List< T >::resize_nocopy(), and UList< T >::size().
Foam::labelList calcListOffsets | ( | const List< SubListType > & | lists, |
const bool | checkOverflow | ||
) |
Definition at line 36 of file globalIndexTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::labelMax, Foam::nl, and Foam::HashTableOps::values().
|
friend |
|
friend |