Various for reading/decomposing/reconstructing/distributing refinement data. More...
Public Member Functions | |
hexRef8Data (const hexRef8Data &)=delete | |
No copy construct. More... | |
void | operator= (const hexRef8Data &)=delete |
No copy assignment. More... | |
hexRef8Data (const IOobject &io) | |
Construct from IOobject, reading if MUST_READ or LAZY_READ. Use sync() if used in redistributing to different number of ranks. More... | |
hexRef8Data (const IOobject &io, const hexRef8Data &, const labelList &cellMap, const labelList &pointMap) | |
Construct as subset. More... | |
hexRef8Data (const IOobject &io, const UPtrList< const labelList > &cellMaps, const UPtrList< const labelList > &pointMaps, const UPtrList< const hexRef8Data > &) | |
Construct from multiple hexRef8Data. More... | |
~hexRef8Data () | |
Destructor. More... | |
void | sync (const IOobject &io) |
Parallel synchronise. This enforces valid objects on all processors (even if they don't have a mesh). Used by redistributePar. More... | |
void | updateMesh (const mapPolyMesh &) |
Update local numbering for changed mesh. More... | |
void | distribute (const mapDistributePolyMesh &) |
In-place distribute. More... | |
bool | write () const |
Write. More... | |
Various for reading/decomposing/reconstructing/distributing refinement data.
Definition at line 56 of file hexRef8Data.H.
|
delete |
No copy construct.
|
explicit |
Construct from IOobject, reading if MUST_READ or LAZY_READ. Use sync() if used in redistributing to different number of ranks.
Definition at line 34 of file hexRef8Data.C.
References Foam::endl(), Foam::Info, io(), IOobjectOption::LAZY_READ, IOobjectOption::MUST_READ, IOobject::name(), Foam::returnReduceOr(), and IOobject::typeHeaderOk().
hexRef8Data | ( | const IOobject & | io, |
const hexRef8Data & | data, | ||
const labelList & | cellMap, | ||
const labelList & | pointMap | ||
) |
Construct as subset.
Definition at line 94 of file hexRef8Data.C.
References io().
hexRef8Data | ( | const IOobject & | io, |
const UPtrList< const labelList > & | cellMaps, | ||
const UPtrList< const labelList > & | pointMaps, | ||
const UPtrList< const hexRef8Data > & | procDatas | ||
) |
Construct from multiple hexRef8Data.
Definition at line 146 of file hexRef8Data.C.
References IOobject::db(), forAll, io(), mesh, Foam::name(), primitiveMesh::nCells(), primitiveMesh::nPoints(), and UPtrList< T >::size().
~hexRef8Data | ( | ) |
Destructor.
Definition at line 233 of file hexRef8Data.C.
|
delete |
No copy assignment.
void sync | ( | const IOobject & | io | ) |
Parallel synchronise. This enforces valid objects on all processors (even if they don't have a mesh). Used by redistributePar.
Definition at line 239 of file hexRef8Data.C.
References Pstream::broadcast(), IOobject::db(), Foam::dimLength, io(), UPstream::master(), mesh, primitiveMesh::nCells(), IOobjectOption::NO_READ, primitiveMesh::nPoints(), IOobjectOption::readOpt(), Foam::returnReduceOr(), and Foam::Zero.
void updateMesh | ( | const mapPolyMesh & | map | ) |
Update local numbering for changed mesh.
Definition at line 308 of file hexRef8Data.C.
References mapPolyMesh::cellMap(), polyMesh::facesInstance(), forAll, mapPolyMesh::mesh(), newPointi, mapPolyMesh::nOldCells(), mapPolyMesh::nOldPoints(), mapPolyMesh::pointMap(), UList< T >::size(), and List< T >::transfer().
void distribute | ( | const mapDistributePolyMesh & | map | ) |
In-place distribute.
Definition at line 379 of file hexRef8Data.C.
References mapDistributePolyMesh::cellMap(), mapDistribute::distribute(), and mapDistributePolyMesh::pointMap().
bool write | ( | ) | const |
Write.
Definition at line 399 of file hexRef8Data.C.