Go to the documentation of this file.
81 rio.
rename(
"refinementHistory");
100 if (
data.cellLevelPtr_.valid())
114 if (
data.pointLevelPtr_.valid())
128 if (
data.level0EdgePtr_.valid())
138 if (
data.refHistoryPtr_.valid())
143 refHistoryPtr_ =
data.refHistoryPtr_().
clone(rio, cellMap);
160 if (procDatas[0].cellLevelPtr_.valid())
163 rio.
rename(procDatas[0].cellLevelPtr_().
name());
170 const labelList& procCellLevel = procDatas[procI].cellLevelPtr_();
178 if (procDatas[0].pointLevelPtr_.valid())
181 rio.
rename(procDatas[0].pointLevelPtr_().
name());
184 labelList& pointLevel = pointLevelPtr_();
188 const labelList& procPointLevel = procDatas[procI].pointLevelPtr_();
196 if (procDatas[0].level0EdgePtr_.valid())
199 rio.
rename(procDatas[0].level0EdgePtr_().
name());
206 procDatas[0].level0EdgePtr_()
214 if (procDatas[0].refHistoryPtr_.valid())
217 rio.
rename(procDatas[0].refHistoryPtr_().
name());
222 procRefs.
set(i, &procDatas[i].refHistoryPtr_());
251 if (hasCellLevel && !cellLevelPtr_.valid())
260 if (hasPointLevel && !pointLevelPtr_.valid())
277 if (!level0EdgePtr_.valid())
294 if (hasHistory && !refHistoryPtr_.valid())
297 rio.
rename(
"refinementHistory");
306 if (cellLevelPtr_.valid())
310 if (pointLevelPtr_.valid())
317 if (refHistoryPtr_.valid() && refHistoryPtr_().active())
319 refHistoryPtr_().distribute(map);
327 if (cellLevelPtr_.valid())
329 ok = ok && cellLevelPtr_().write();
331 if (pointLevelPtr_.valid())
333 ok = ok && pointLevelPtr_().write();
335 if (level0EdgePtr_.valid())
337 ok = ok && level0EdgePtr_().write();
339 if (refHistoryPtr_.valid())
341 ok = ok && refHistoryPtr_().write();
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
autoPtr< refinementHistory > refHistoryPtr_
List< label > labelList
A List of labels.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
static void scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOList< label > labelIOList
Label container classes.
Mesh consisting of general polyhedral cells.
const mapDistribute & cellMap() const
Cell distribute map.
const objectRegistry & db() const
Return the local objectRegistry.
bool headerOk()
Read and check header info.
All refinement history. Used in unrefinement.
autoPtr< uniformDimensionedScalarField > level0EdgePtr_
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
readOption readOpt() const
autoPtr< labelIOList > pointLevelPtr_
UniformDimensionedField< scalar > uniformDimensionedScalarField
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const word & name() const
Return name.
void distribute(const mapDistributePolyMesh &)
In-place distribute.
Various for reading/decomposing/reconstructing/distributing refinement data.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
virtual void rename(const word &newName)
Rename.
void sync(const IOobject &io)
Parallel synchronise. This enforces valid objects on all processors.
static bool master(const label communicator=0)
Am I the master process.
hexRef8Data(const hexRef8Data &)
Disallow default bitwise copy construct.
const word & name() const
Name function is needed to disambiguate those inherited.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool set(const label) const
Is element set.
autoPtr< dictionary > clone() const
Construct and return clone.
~hexRef8Data()
Destructor.
A List with indirect addressing.
const mapDistribute & pointMap() const
Point distribute map.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
autoPtr< labelIOList > cellLevelPtr_
Database for solution data, solver performance and other reduced data.
word name(const complex &)
Return a string representation of a complex.
label size() const
Return the number of elements in the UPtrList.