Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors) More...
Functions | |
template<class T , class Addr , class AccessOp > | |
labelList | subSizes (const IndirectListBase< T, Addr > &lists, AccessOp aop) |
template<class IntListType > | |
void | inplaceRenumber (const labelUList &oldToNew, IntListType &lists) |
template<class T , class AccessOp > | |
labelList | subSizes (const UList< T > &lists, AccessOp aop=accessOp< T >()) |
template<class T , class AccessOp > | |
label | sumSizes (const UList< T > &lists, AccessOp aop=accessOp< T >()) |
template<class AccessType , class T , class AccessOp > | |
AccessType | combine (const UList< T > &lists, AccessOp aop=accessOp< T >()) |
template<class AccessType , class T , class AccessOp , class OffsetOp > | |
AccessType | combineOffset (const UList< T > &lists, const labelUList &offsets, AccessOp aop, OffsetOp oop=offsetOp< T >()) |
Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors)
The access of data is through an AccessOp so that data can be 'gather'ed in one go, minimizing communication, and then picked apart and recombined.
Example:
labelList Foam::ListListOps::subSizes | ( | const IndirectListBase< T, Addr > & | lists, |
AccessOp | aop | ||
) |
Definition at line 65 of file ensightOutput.H.
References Foam::output(), IndirectListBase< T, Addr >::size(), and Foam::T().
void Foam::ListListOps::inplaceRenumber | ( | const labelUList & | oldToNew, |
IntListType & | lists | ||
) |
Definition at line 90 of file ensightOutput.H.
References Foam::input().
Referenced by fvMeshAdder::add(), fvMeshPrimitiveLduAddressing::addAddressing(), cellTable::combine(), ABAQUSCore::readHelper::compact_nodes(), STARCDMeshReader::cullPoints(), PatchTools::gatherAndMerge(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), surfaceIntersection::mergePoints(), foamVtkMeshMaps::renumberCells(), foamVtkMeshMaps::renumberPoints(), extendedEdgeMesh::setFromStatus(), extendedEdgeMesh::sortPointsAndEdges(), meshRefinement::splitFacesUndo(), duplicatePoints::updateMesh(), combineFaces::updateMesh(), tetDecomposer::updateMesh(), FacePostProcessing< CloudType >::write(), ensightFaces::write(), and externalCoupled::writeGeometry().
Definition at line 62 of file ListListOps.C.
References Foam::output(), and T.
Referenced by badQualityToCell::applyToSet(), badQualityToFace::applyToSet(), regionsToCell::applyToSet(), boundaryToCell::applyToSet(), boundaryToFace::applyToSet(), nbrToCell::applyToSet(), nearestToPoint::applyToSet(), nearestToCell::applyToSet(), patchToCell::applyToSet(), haloToCell::applyToSet(), patchToFace::applyToSet(), shapeToCell::applyToSet(), sphereToPoint::applyToSet(), sphereToFace::applyToSet(), sphereToCell::applyToSet(), regionToFace::applyToSet(), searchableSurfaceToCell::applyToSet(), boxToPoint::applyToSet(), searchableSurfaceToPoint::applyToSet(), boxToCell::applyToSet(), boxToFace::applyToSet(), searchableSurfaceToFace::applyToSet(), cylinderToPoint::applyToSet(), targetVolumeToCell::applyToSet(), cylinderAnnulusToFace::applyToSet(), cylinderToFace::applyToSet(), cylinderToCell::applyToSet(), rotatedBoxToCell::applyToSet(), cylinderAnnulusToCell::applyToSet(), cellToPoint::applyToSet(), zoneToCell::applyToSet(), faceToPoint::applyToSet(), zoneToPoint::applyToSet(), zoneToFace::applyToSet(), pointToCell::applyToSet(), pointToFace::applyToSet(), faceToCell::applyToSet(), planeToFaceZone::applyToSet(), regionToCell::applyToSet(), surfaceToPoint::applyToSet(), faceZoneToCell::applyToSet(), surfaceToCell::applyToSet(), InflationInjection< CloudType >::parcelsToInject(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().
AccessType combineOffset | ( | const UList< T > & | lists, |
const labelUList & | offsets, | ||
AccessOp | aop, | ||
OffsetOp | oop = offsetOp<T>() |
||
) |
Definition at line 92 of file ListListOps.C.
References UList::begin(), Foam::output(), and T.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.