56 if (decompositionConstraint::debug)
58 Info<<
type() <<
" : setting constraints to preserve refinement history"
68 if (decompositionConstraint::debug)
70 Info<<
type() <<
" : setting constraints to refinement history"
92 if (decompositionConstraint::debug)
94 Info<<
type() <<
" add : found refinementHistory" <<
endl;
100 if (decompositionConstraint::debug)
102 Info<<
type() <<
" add : reading refinementHistory from time "
132 if (decompositionConstraint::debug)
134 Info<<
type() <<
" add : adding refinementHistory " <<
endl;
141 specifiedProcessorFaces,
164 if (decompositionConstraint::debug)
166 Info<<
type() <<
" apply : found refinementHistory" <<
endl;
172 if (decompositionConstraint::debug)
174 Info<<
type() <<
" apply : reading refinementHistory from time "
204 if (decompositionConstraint::debug)
206 Info<<
type() <<
" apply : adding refinementHistory " <<
endl;
213 specifiedProcessorFaces,
Macros for easy insertion into run-time selection tables.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
void reset(T *=nullptr)
If object pointer already set, delete object and set to given.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
bool foundObject(const word &name) const
Is the named Type in registry.
Mesh consisting of general polyhedral cells.
const fileName & facesInstance() const
Return the current instance directory for faces.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Constraint to keep all cells originating from refining the same cell onto the same processor....
virtual void apply(const polyMesh &mesh, const boolList &blockedFace, const PtrList< labelList > &specifiedProcessorFaces, const labelList &specifiedProcessor, const List< labelPair > &explicitConnections, labelList &decomposition) const
Apply any additional post-decomposition constraints.
virtual void add(const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
Add my constraints to list of constraints.
refinementHistoryConstraint()
Construct from components.
All refinement history. Used in unrefinement.
void apply(const boolList &blockedFace, const PtrList< labelList > &specifiedProcessorFaces, const labelList &specifiedProcessor, const List< labelPair > &explicitConnections, labelList &decomposition) const
Apply any additional post-decomposition constraints.
void add(boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
Add my decomposition constraints.
bool active() const
Is there unrefinement history?
A class for handling words, derived from string.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeName(refinementHistoryConstraint)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.