Class containing processor-to-processor mapping information. More...
Classes | |
class | transform |
Default transformation behaviour. More... | |
class | transformPosition |
Default transformation behaviour for position. More... | |
Public Member Functions | |
ClassName ("mapDistribute") | |
mapDistribute () | |
Default construct - uses worldComm. More... | |
mapDistribute (const label comm) | |
Default construct with specified communicator. More... | |
mapDistribute (mapDistributeBase &&map) | |
Move construct from base, no transforms. More... | |
mapDistribute (const mapDistribute &map) | |
Copy construct. More... | |
mapDistribute (mapDistribute &&map) | |
Move construct. More... | |
mapDistribute (const dictionary &dict, const label comm=UPstream::worldComm) | |
Read construct from dictionary. More... | |
mapDistribute (const label constructSize, labelListList &&subMap, labelListList &&constructMap, labelListList &&transformElements, labelList &&transformStart, const bool subHasFlip=false, const bool constructHasFlip=false, const label comm=UPstream::worldComm) | |
Move construct from components. More... | |
mapDistribute (const globalIndex &, labelList &untransformedElements, const globalIndexAndTransform &, const labelPairList &transformedElements, labelList &transformedIndices, List< Map< label > > &compactMap, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm) | |
mapDistribute (const globalIndex &, labelListList &cellCells, const globalIndexAndTransform &, const List< labelPairList > &transformedElements, labelListList &transformedIndices, List< Map< label > > &compactMap, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm) | |
As above but with ListLists. More... | |
mapDistribute (Istream &is) | |
Construct from Istream. More... | |
autoPtr< mapDistribute > | clone () const |
Clone. More... | |
virtual | ~mapDistribute ()=default |
Destructor. More... | |
const labelListList & | transformElements () const noexcept |
For every globalIndexAndTransform::transformPermutations. More... | |
const labelList & | transformStart () const noexcept |
Destination in constructMap for transformed elements. More... | |
label | whichTransform (const label index) const |
Find transform from transformElements. More... | |
void | clear () |
Reset to zero size, only retaining communicator. More... | |
void | transfer (mapDistribute &map) |
Transfer the contents of the argument and annul the argument. More... | |
template<class T > | |
void | distribute (List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
Distribute data using default commsType. More... | |
template<class T , class NegateOp > | |
void | distribute (List< T > &fld, const NegateOp &negOp, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
Distribute data using default commsType. More... | |
template<class T > | |
void | distribute (DynamicList< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
Distribute data using default commsType. More... | |
template<class T > | |
void | reverseDistribute (const label constructSize, List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
Reverse distribute data using default commsType. More... | |
template<class T > | |
void | reverseDistribute (const label constructSize, const T &nullValue, List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const |
Reverse distribute data using default commsType. More... | |
template<class T , class TransformOp > | |
void | distribute (const globalIndexAndTransform &, List< T > &fld, const TransformOp &top, const int tag=UPstream::msgType()) const |
Distribute with transforms. More... | |
template<class T , class TransformOp > | |
void | reverseDistribute (const globalIndexAndTransform &, const label constructSize, List< T > &fld, const TransformOp &top, const int tag=UPstream::msgType()) const |
Reverse distribute with transforms. More... | |
template<class T , class TransformOp > | |
void | reverseDistribute (const globalIndexAndTransform &, const label constructSize, const T &nullValue, List< T > &fld, const TransformOp &top, const int tag=UPstream::msgType()) const |
Reverse distribute with transforms. More... | |
void | printLayout (Ostream &os) const |
Debug: print layout. Can only be used on maps with sorted. More... | |
void | operator= (const mapDistribute &rhs) |
Copy assignment. More... | |
void | operator= (mapDistribute &&rhs) |
Move assignment. More... | |
void | readDict (const dictionary &dict) |
Read entries from dictionary format. More... | |
void | writeEntries (Ostream &os) const |
Write entries in dictionary format. More... | |
void | updateMesh (const mapPolyMesh &) |
No correction for topo change. More... | |
mapDistributeBase () | |
Inherit constructors. More... | |
mapDistributeBase (const label comm) | |
Inherit constructors. More... | |
mapDistributeBase (const mapDistributeBase &map) | |
Inherit constructors. More... | |
mapDistributeBase (mapDistributeBase &&map) | |
Inherit constructors. More... | |
mapDistributeBase (const dictionary &dict, const label comm=UPstream::worldComm) | |
Inherit constructors. More... | |
mapDistributeBase (const label constructSize, labelListList &&subMap, labelListList &&constructMap, const bool subHasFlip=false, const bool constructHasFlip=false, const label comm=UPstream::worldComm) | |
Inherit constructors. More... | |
mapDistributeBase (const labelUList &sendProcs, const labelUList &recvProcs, const label comm=UPstream::worldComm) | |
Inherit constructors. More... | |
mapDistributeBase (const globalIndex &, labelList &elements, List< Map< label > > &compactMap, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm) | |
Inherit constructors. More... | |
mapDistributeBase (const globalIndex &, labelListList &cellCells, List< Map< label > > &compactMap, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm) | |
Inherit constructors. More... | |
mapDistributeBase (labelListList &&subMap, const bool subHasFlip=false, const bool constructHasFlip=false, const label comm=UPstream::worldComm) | |
Inherit constructors. More... | |
mapDistributeBase (Istream &is) | |
Inherit constructors. More... | |
Public Member Functions inherited from mapDistributeBase | |
ClassName ("mapDistributeBase") | |
mapDistributeBase () | |
Default construct (uses worldComm) More... | |
mapDistributeBase (const label comm) | |
Default construct with specified communicator. More... | |
mapDistributeBase (const mapDistributeBase &map) | |
Copy construct. More... | |
mapDistributeBase (mapDistributeBase &&map) | |
Move construct. More... | |
mapDistributeBase (const dictionary &dict, const label comm=UPstream::worldComm) | |
Read construct from dictionary. More... | |
mapDistributeBase (const label constructSize, labelListList &&subMap, labelListList &&constructMap, const bool subHasFlip=false, const bool constructHasFlip=false, const label comm=UPstream::worldComm) | |
Move construct from components. More... | |
mapDistributeBase (const labelUList &sendProcs, const labelUList &recvProcs, const label comm=UPstream::worldComm) | |
mapDistributeBase (const globalIndex &, labelList &elements, List< Map< label > > &compactMap, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm) | |
mapDistributeBase (const globalIndex &, labelListList &cellCells, List< Map< label > > &compactMap, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm) | |
mapDistributeBase (labelListList &&subMap, const bool subHasFlip=false, const bool constructHasFlip=false, const label comm=UPstream::worldComm) | |
Construct from my elements to send. More... | |
mapDistributeBase (Istream &is) | |
Construct from Istream. More... | |
label | constructSize () const noexcept |
Constructed data size. More... | |
label & | constructSize () noexcept |
Constructed data size. More... | |
const labelListList & | subMap () const noexcept |
From subsetted data back to original data. More... | |
labelListList & | subMap () noexcept |
From subsetted data back to original data. More... | |
const labelListList & | constructMap () const noexcept |
From subsetted data to new reconstructed data. More... | |
labelListList & | constructMap () noexcept |
From subsetted data to new reconstructed data. More... | |
bool | subHasFlip () const noexcept |
Does subMap include a sign. More... | |
bool & | subHasFlip () noexcept |
Does subMap include a sign. More... | |
bool | constructHasFlip () const noexcept |
Does constructMap include a sign. More... | |
bool & | constructHasFlip () noexcept |
Does constructMap include a sign. More... | |
label | comm () const noexcept |
The communicator used. More... | |
label | nMaps () const noexcept |
The number of sub-lists within the maps. More... | |
labelList | subMapSizes () const |
The sizes of the subMap lists. More... | |
labelList | constructMapSizes () const |
The sizes of the constructMap lists. More... | |
const List< labelPair > & | schedule () const |
Return a schedule. Demand driven. See above. More... | |
const List< labelPair > & | whichSchedule (const UPstream::commsTypes commsType) const |
void | clear () |
Reset to zero size, only retaining communicator. More... | |
void | transfer (mapDistributeBase &rhs) |
Transfer the contents of the argument and annul the argument. More... | |
void | compactLocalData (const bitSet &allowedLocalElems, const int tag=UPstream::msgType(), const bool doRenumber=false) |
void | compactRemoteData (const bitSet &allowedRemoteElems, const int tag=UPstream::msgType(), const bool doRenumber=false) |
void | compactLocalData (const bitSet &allowedLocalElems, labelList &oldToNewSub, labelList &oldToNewConstruct, const label localSize=-1, const int tag=UPstream::msgType()) |
void | compactRemoteData (const bitSet &allowedRemoteElems, labelList &oldToNewSub, labelList &oldToNewConstruct, const label localSize=-1, const int tag=UPstream::msgType()) |
void | compactData (const labelUList &localElements, const labelUList &remoteElements, labelList &oldToNewSub, labelList &oldToNewConstruct, const label localSize=-1, const int tag=UPstream::msgType()) |
void | compactLocalData (const labelUList &localElements, labelList &oldToNewSub, labelList &oldToNewConstruct, const label localSize=-1, const int tag=UPstream::msgType()) |
void | compactRemoteData (const labelUList &remoteElements, labelList &oldToNewSub, labelList &oldToNewConstruct, const label localSize=-1, const int tag=UPstream::msgType()) |
template<class T > | |
void | distribute (List< T > &values, const int tag=UPstream::msgType()) const |
template<class T > | |
void | distribute (DynamicList< T > &values, const int tag=UPstream::msgType()) const |
template<class T , class NegateOp > | |
void | distribute (List< T > &values, const NegateOp &negOp, const int tag=UPstream::msgType()) const |
template<class T , class NegateOp > | |
void | distribute (const Pstream::commsTypes commsType, List< T > &values, const NegateOp &negOp, const int tag=UPstream::msgType()) const |
template<class T , class NegateOp > | |
void | distribute (const Pstream::commsTypes commsType, const T &nullValue, List< T > &values, const NegateOp &negOp, const int tag=UPstream::msgType()) const |
template<class T > | |
void | reverseDistribute (const label constructSize, List< T > &values, const int tag=UPstream::msgType()) const |
template<class T > | |
void | reverseDistribute (const label constructSize, const T &nullValue, List< T > &values, const int tag=UPstream::msgType()) const |
template<class T > | |
void | reverseDistribute (const Pstream::commsTypes commsType, const label constructSize, List< T > &values, const int tag=UPstream::msgType()) const |
template<class T , class NegateOp > | |
void | reverseDistribute (const Pstream::commsTypes commsType, const label constructSize, List< T > &values, const NegateOp &negOp, const int tag=UPstream::msgType()) const |
template<class T > | |
void | reverseDistribute (const Pstream::commsTypes commsType, const label constructSize, const T &nullValue, List< T > &values, const int tag=UPstream::msgType()) const |
template<class T > | |
void | send (PstreamBuffers &pBufs, const List< T > &field) const |
Do all sends using PstreamBuffers. More... | |
template<class T > | |
void | receive (PstreamBuffers &pBufs, List< T > &field) const |
Do all receives using PstreamBuffers. More... | |
void | printLayout (Ostream &os) const |
Debug: print layout. Can only be used on maps with sorted. More... | |
void | operator= (const mapDistributeBase &rhs) |
Copy assignment. More... | |
void | operator= (mapDistributeBase &&rhs) |
Move assignment. More... | |
InfoProxy< mapDistributeBase > | info () const |
Info proxy to print summary information to a stream. More... | |
void | readDict (const dictionary &dict) |
Read entries from dictionary format. More... | |
void | writeEntries (Ostream &os) const |
Write entries in dictionary format. More... | |
void | updateMesh (const mapPolyMesh &) |
No correction for topo change. More... | |
void | compact (const boolList &remoteElemUsed, const int tag=UPstream::msgType()) |
void | compact (const boolList &remoteElemUsed, const label localSize, labelList &oldToNewSub, labelList &oldToNewConstruct, const int tag=UPstream::msgType()) |
template<class T , class NegateOp > | |
Foam::List< T > | accessAndFlip (const UList< T > &values, const labelUList &indices, const bool hasFlip, const NegateOp &negOp) |
Friends | |
Istream & | operator>> (Istream &, mapDistribute &) |
Read plain content (not dictionary) from Istream. More... | |
Ostream & | operator<< (Ostream &, const mapDistribute &) |
Write plain content (not dictionary) to Ostream. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from mapDistributeBase | |
static bool | hasFlipAddressing (const labelUList &map) |
static bool | hasFlipAddressing (const labelListList &maps) |
static label | countUnmapped (const labelUList &elements, const labelListList &maps, const bool hasFlip) |
Count the number of unmapped elements. More... | |
static List< labelPair > | schedule (const labelListList &subMap, const labelListList &constructMap, const int tag, const label comm=UPstream::worldComm) |
Calculate a communication schedule. See above. More... | |
static label | renumber (const globalIndex &, const List< Map< label > > &compactMap, const label globalElement) |
Helper for construct from globalIndex. Renumbers element. More... | |
static label | renumberMap (labelListList &mapElements, const labelUList &oldToNew, const bool hasFlip) |
template<class T , class NegateOp > | |
static void | distribute (const Pstream::commsTypes commsType, const List< labelPair > &schedule, const label constructSize, const labelListList &subMap, const bool subHasFlip, const labelListList &constructMap, const bool constructHasFlip, List< T > &field, const NegateOp &negOp, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm) |
Distribute data with specified negate operator (for flips). More... | |
template<class T , class CombineOp , class NegateOp > | |
static void | distribute (const Pstream::commsTypes commsType, const List< labelPair > &schedule, const label constructSize, const labelListList &subMap, const bool subHasFlip, const labelListList &constructMap, const bool constructHasFlip, List< T > &field, const T &nullValue, const CombineOp &cop, const NegateOp &negOp, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm) |
Distribute data with specified combine operation. More... | |
Protected Member Functions inherited from mapDistributeBase | |
void | calcCompactAddressing (const globalIndex &globalNumbering, const labelUList &elements, List< Map< label > > &compactMap) const |
Construct per processor compact addressing of the global elements. More... | |
void | calcCompactAddressing (const globalIndex &globalNumbering, const labelListList &elements, List< Map< label > > &compactMap) const |
void | exchangeAddressing (const int tag, const globalIndex &globalNumbering, labelList &elements, List< Map< label > > &compactMap, labelList &compactStart) |
void | exchangeAddressing (const int tag, const globalIndex &globalNumbering, labelListList &elements, List< Map< label > > &compactMap, labelList &compactStart) |
Static Protected Member Functions inherited from mapDistributeBase | |
static void | checkReceivedSize (const label proci, const label expectedSize, const label receivedSize) |
Fatal if expected and received size are not equal. More... | |
static label | getMappedSize (const labelListList &maps, const bool hasFlip) |
Scan the maps for the max addressed index. More... | |
static void | exchangeMasks (const UList< bitSet > &sendMasks, UList< bitSet > &recvMasks, const int tag, const label comm) |
Synchronize send/recv mask buffers as a 'copy' operation. More... | |
static void | unionCombineMasks (UList< bitSet > &sendMasks, UList< bitSet > &recvMasks, const int tag, const label comm) |
template<class T , class CombineOp , class NegateOp > | |
static void | flipAndCombine (const labelUList &map, const bool hasFlip, const UList< T > &rhs, const CombineOp &cop, const NegateOp &negOp, List< T > &lhs) |
template<class T , class NegateOp > | |
static T | accessAndFlip (const UList< T > &values, const label index, const bool hasFlip, const NegateOp &negOp) |
template<class T , class NegateOp > | |
static List< T > | accessAndFlip (const UList< T > &values, const labelUList &indices, const bool hasFlip, const NegateOp &negOp) |
Class containing processor-to-processor mapping information.
We store mapping from the bits-to-send to the complete starting list (subXXXMap) and from the received bits to their location in the new list (constructXXXMap).
Note: Schedule is a list of processor pairs (one send, one receive. One of them will be myself) which forms a scheduled (i.e. non-buffered) exchange. See distribute on how to use it. Note2: number of items sent on one processor have to equal the number of items received on the other processor.
To aid constructing these maps there are the constructors from global numbering, either with or without transforms.
It rewrites the input global indices into indices into the constructed data.
Any distribute with transforms is now done as: 1. exchange data with other processors and receive these into the slots for that processor 2. for all transformations transform a subset of the data according to transformElements_[transformI] and store this starting from transformStart_[transformI]
In the same way a reverse distribute will 1. apply the inverse transform to the data starting at transformStart_[transformI] and copy the result back into the transformElements_[transformI]. These might be local or remote slots. 2. the data in the remote slots will now be sent back to the correct location in the originating processor.
E.g. a map to handle
on e.g. processor 1 out of 2:
+——+ <- transformStart[2] | | | | <- transform2 applied to data in local or remote slots | | +——+ <- transformStart[1] | | | | <- transform1 applied to data in local or remote slots | | +——+ <- transformStart[1] | | | | <- transform0 applied to data in local or remote slots | | +——+ <- transformStart[0] | | | | <- data from proc2 | | +——+ | | | | <- data from proc0 | | +——+ <- mesh.nPoints() | | | | | | +——+ 0
When constructing from components optionally a 'flip' on the maps can be specified. This will interpret the map values as index+flip, similar to e.g. faceProcAddressing. The flip will only be applied to fieldTypes (scalar, vector, .. triad)
Definition at line 160 of file mapDistribute.H.
mapDistribute | ( | ) |
Default construct - uses worldComm.
Definition at line 151 of file mapDistribute.C.
|
explicit |
Default construct with specified communicator.
Definition at line 157 of file mapDistribute.C.
|
explicit |
Move construct from base, no transforms.
Definition at line 163 of file mapDistribute.C.
|
explicit |
Copy construct.
Definition at line 169 of file mapDistribute.C.
|
explicit |
Move construct.
Definition at line 177 of file mapDistribute.C.
References mapDistribute::transfer().
|
explicit |
mapDistribute | ( | const label | constructSize, |
labelListList && | subMap, | ||
labelListList && | constructMap, | ||
labelListList && | transformElements, | ||
labelList && | transformStart, | ||
const bool | subHasFlip = false , |
||
const bool | constructHasFlip = false , |
||
const label | comm = UPstream::worldComm |
||
) |
Move construct from components.
Definition at line 185 of file mapDistribute.C.
mapDistribute | ( | const globalIndex & | globalNumbering, |
labelList & | untransformedElements, | ||
const globalIndexAndTransform & | globalTransforms, | ||
const labelPairList & | transformedElements, | ||
labelList & | transformedIndices, | ||
List< Map< label > > & | compactMap, | ||
const int | tag = UPstream::msgType() , |
||
const label | comm = UPstream::worldComm |
||
) |
Construct from list of (possibly remote) untransformed elements in globalIndex numbering (or -1) and (possibly remote) transformed elements in globalIndexAndTransform numbering.
Determines compact numbering (see above) and distribute map to get data into this ordering and renumbers the elements to be in compact numbering.
Definition at line 211 of file mapDistribute.C.
References mapDistributeBase::calcCompactAddressing(), mapDistributeBase::comm(), mapDistributeBase::constructSize(), mapDistributeBase::exchangeAddressing(), forAll, globalIndexAndTransform::index(), processorFaPatch::myProcNo(), n, Foam::Pout, mapDistribute::printLayout(), globalIndexAndTransform::processor(), List< T >::setSize(), UList< T >::size(), globalIndexAndTransform::transformIndex(), globalIndexAndTransform::transformPermutations(), and Foam::Zero.
mapDistribute | ( | const globalIndex & | globalNumbering, |
labelListList & | cellCells, | ||
const globalIndexAndTransform & | globalTransforms, | ||
const List< labelPairList > & | transformedElements, | ||
labelListList & | transformedIndices, | ||
List< Map< label > > & | compactMap, | ||
const int | tag = UPstream::msgType() , |
||
const label | comm = UPstream::worldComm |
||
) |
As above but with ListLists.
Definition at line 319 of file mapDistribute.C.
References mapDistributeBase::calcCompactAddressing(), mapDistributeBase::comm(), mapDistributeBase::constructSize(), mapDistributeBase::exchangeAddressing(), forAll, globalIndexAndTransform::index(), processorFaPatch::myProcNo(), n, Foam::Pout, mapDistribute::printLayout(), globalIndexAndTransform::processor(), List< T >::setSize(), UList< T >::size(), globalIndexAndTransform::transformIndex(), globalIndexAndTransform::transformPermutations(), and Foam::Zero.
|
explicit |
Construct from Istream.
Definition at line 41 of file mapDistributeIO.C.
|
virtualdefault |
Destructor.
ClassName | ( | "mapDistribute" | ) |
Foam::autoPtr< Foam::mapDistribute > clone | ( | ) | const |
Clone.
Definition at line 440 of file mapDistribute.C.
References Time::New().
|
inlinenoexcept |
For every globalIndexAndTransform::transformPermutations.
gives the elements that need to be transformed
Definition at line 412 of file mapDistribute.H.
|
inlinenoexcept |
Destination in constructMap for transformed elements.
Definition at line 418 of file mapDistribute.H.
Foam::label whichTransform | ( | const label | index | ) | const |
Find transform from transformElements.
Definition at line 448 of file mapDistribute.C.
References Foam::findLower().
void clear | ( | ) |
Reset to zero size, only retaining communicator.
Definition at line 454 of file mapDistribute.C.
References mapDistributeBase::clear().
void transfer | ( | mapDistribute & | map | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 462 of file mapDistribute.C.
References kinematicSingleLayer::transfer().
Referenced by mapDistribute::mapDistribute().
void distribute | ( | List< T > & | fld, |
const bool | dummyTransform = true , |
||
const int | tag = UPstream::msgType() |
||
) | const |
Distribute data using default commsType.
Definition at line 149 of file mapDistributeTemplates.C.
References mapDistribute::distribute(), and fld().
Referenced by AMIInterpolation::agglomerate(), LeastSquaresGrad< Type, Stencil >::calcGrad(), extendedCellToFaceStencil::collectData(), extendedFaceToCellStencil::collectData(), hexRef8Data::distribute(), mapDistribute::distribute(), mappedPatchBase::distribute(), mapDistributePolyMesh::distributeCellData(), mapDistributePolyMesh::distributeFaceData(), mapDistributeLagrangian::distributeLagrangianData(), mapDistributePolyMesh::distributePatchData(), mapDistributePolyMesh::distributePointData(), cellVolumeWeight::findHoles(), inverseDistance::findHoles(), distributedTriSurfaceMesh::findNearest(), distributedTriSurfaceMesh::getVolumeType(), globalIndexAndTransform::globalIndexAndTransform(), AMIInterpolation::interpolateToSource(), AMIInterpolation::interpolateToTarget(), distributedTriSurfaceMesh::localQueries(), meshToMesh::mapSrcToTgt(), meshToMesh::mapTgtToSrc(), globalMeshData::mergePoints(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), PatchTools::pointNormals(), sampledPatchInternalField::sampleOnPoints(), globalMeshData::syncData(), pointConstraints::syncUntransformedData(), dynamicOversetFvMesh::updateAddressing(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), Sampled< Type >::value(), dynamicOversetFvMesh::writeObject(), and faMeshTools::writeProcAddressing().
void distribute | ( | List< T > & | fld, |
const NegateOp & | negOp, | ||
const bool | dummyTransform = true , |
||
const int | tag = UPstream::msgType() |
||
) | const |
Distribute data using default commsType.
Fill in transformed slots with copies
Definition at line 130 of file mapDistributeTemplates.C.
References mapDistribute::distribute(), and fld().
void distribute | ( | DynamicList< T > & | fld, |
const bool | dummyTransform = true , |
||
const int | tag = UPstream::msgType() |
||
) | const |
Distribute data using default commsType.
Definition at line 161 of file mapDistributeTemplates.C.
References mapDistribute::distribute(), fld(), and UList< T >::size().
void reverseDistribute | ( | const label | constructSize, |
List< T > & | fld, | ||
const bool | dummyTransform = true , |
||
const int | tag = UPstream::msgType() |
||
) | const |
Reverse distribute data using default commsType.
Definition at line 179 of file mapDistributeTemplates.C.
References fld(), and mapDistributeBase::reverseDistribute().
Referenced by distributedTriSurfaceMesh::findNearest(), distributedTriSurfaceMesh::getField(), distributedTriSurfaceMesh::getNormal(), distributedTriSurfaceMesh::getRegion(), mappedPatchFieldBase< Type >::mappedField(), globalMeshData::mergePoints(), PatchTools::pointNormals(), sampledPatchInternalField::sampleOnPoints(), globalMeshData::syncData(), pointConstraints::syncUntransformedData(), Sampled< Type >::value(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().
void reverseDistribute | ( | const label | constructSize, |
const T & | nullValue, | ||
List< T > & | fld, | ||
const bool | dummyTransform = true , |
||
const int | tag = UPstream::msgType() |
||
) | const |
Reverse distribute data using default commsType.
Since constructSize might be larger than supplied size supply a nullValue
Definition at line 197 of file mapDistributeTemplates.C.
References fld(), and mapDistributeBase::reverseDistribute().
void distribute | ( | const globalIndexAndTransform & | git, |
List< T > & | fld, | ||
const TransformOp & | top, | ||
const int | tag = UPstream::msgType() |
||
) | const |
Distribute with transforms.
Definition at line 216 of file mapDistributeTemplates.C.
References mapDistribute::distribute(), and fld().
void reverseDistribute | ( | const globalIndexAndTransform & | git, |
const label | constructSize, | ||
List< T > & | fld, | ||
const TransformOp & | top, | ||
const int | tag = UPstream::msgType() |
||
) | const |
Reverse distribute with transforms.
Definition at line 233 of file mapDistributeTemplates.C.
References fld().
void reverseDistribute | ( | const globalIndexAndTransform & | git, |
const label | constructSize, | ||
const T & | nullValue, | ||
List< T > & | fld, | ||
const TransformOp & | top, | ||
const int | tag = UPstream::msgType() |
||
) | const |
Reverse distribute with transforms.
Definition at line 253 of file mapDistributeTemplates.C.
References fld().
void printLayout | ( | Ostream & | os | ) | const |
Debug: print layout. Can only be used on maps with sorted.
storage (local data first, then non-local data)
Definition at line 133 of file mapDistribute.C.
References Foam::endl(), forAll, Foam::nl, os(), mapDistributeBase::printLayout(), and UList< T >::size().
Referenced by mapDistribute::mapDistribute().
void operator= | ( | const mapDistribute & | rhs | ) |
Copy assignment.
Definition at line 477 of file mapDistribute.C.
References mapDistributeBase::operator=().
Referenced by IOmapDistribute::IOmapDistribute().
void operator= | ( | mapDistribute && | rhs | ) |
Move assignment.
Definition at line 490 of file mapDistribute.C.
void readDict | ( | const dictionary & | dict | ) |
Read entries from dictionary format.
Definition at line 49 of file mapDistributeIO.C.
References dict, dictionary::findDict(), mapDistribute::readDict(), and dictionary::readIfPresent().
Referenced by mapDistribute::readDict().
void writeEntries | ( | Ostream & | os | ) | const |
Write entries in dictionary format.
Definition at line 69 of file mapDistributeIO.C.
References Ostream::beginBlock(), Ostream::endBlock(), Foam::nl, os(), mapDistributeBase::writeEntries(), and Ostream::writeEntry().
|
inline |
No correction for topo change.
Definition at line 551 of file mapDistribute.H.
References NotImplemented.
Inherit constructors.
Definition at line 363 of file mapDistributeBase.C.
|
explicit |
Inherit constructors.
Definition at line 366 of file mapDistributeBase.C.
mapDistributeBase | ( | const mapDistributeBase & | map | ) |
Inherit constructors.
Definition at line 369 of file mapDistributeBase.C.
mapDistributeBase | ( | mapDistributeBase && | map | ) |
Inherit constructors.
Definition at line 372 of file mapDistributeBase.C.
|
explicit |
Inherit constructors.
Definition at line 375 of file mapDistributeBaseIO.C.
mapDistributeBase | ( | const label | constructSize, |
labelListList && | subMap, | ||
labelListList && | constructMap, | ||
const bool | subHasFlip = false , |
||
const bool | constructHasFlip = false , |
||
const label | comm = UPstream::worldComm |
||
) |
Inherit constructors.
Definition at line 382 of file mapDistributeBase.C.
mapDistributeBase | ( | const labelUList & | sendProcs, |
const labelUList & | recvProcs, | ||
const label | comm = UPstream::worldComm |
||
) |
Inherit constructors.
Definition at line 396 of file mapDistributeBase.C.
mapDistributeBase | ( | const globalIndex & | globalNumbering, |
labelList & | elements, | ||
List< Map< label > > & | compactMap, | ||
const int | tag = Pstream::msgType() , |
||
const label | comm = UPstream::worldComm |
||
) |
Inherit constructors.
Definition at line 409 of file mapDistributeBase.C.
mapDistributeBase | ( | const globalIndex & | globalNumbering, |
labelListList & | cellCells, | ||
List< Map< label > > & | compactMap, | ||
const int | tag = Pstream::msgType() , |
||
const label | comm = UPstream::worldComm |
||
) |
Inherit constructors.
Definition at line 423 of file mapDistributeBase.C.
References globalIndex::isLocal(), and globalIndex::toLocal().
|
explicit |
Inherit constructors.
Definition at line 435 of file mapDistributeBase.C.
|
explicit |
Inherit constructors.
Definition at line 444 of file mapDistributeBaseIO.C.
|
friend |
Read plain content (not dictionary) from Istream.
|
friend |
Write plain content (not dictionary) to Ostream.