61 if (decompositionConstraint::debug)
64 <<
" : setting constraints to refinement history" <<
endl;
73 if (decompositionConstraint::debug)
76 <<
" : setting constraints to refinement history" <<
endl;
98 const HistoryType* historyPtr =
99 mesh.findObject<HistoryType>(
"refinementHistory");
103 if (decompositionConstraint::debug)
110 if (decompositionConstraint::debug)
112 Info<<
type() <<
" : reading refinementHistory from time "
123 mesh.facesInstance(),
133 historyPtr = readFromFile.
get();
136 const auto& history = *historyPtr;
138 if (history.active())
144 specifiedProcessorFaces,
168 const HistoryType* historyPtr =
169 mesh.findObject<HistoryType>(
"refinementHistory");
180 mesh.facesInstance(),
190 historyPtr = readFromFile.
get();
193 const auto& history = *historyPtr;
195 if (history.active())
201 specifiedProcessorFaces,
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T * get() noexcept
Return pointer to managed object without nullptr checking.
void reset(T *p=nullptr) noexcept
Delete managed object and set to new given pointer.
Abstract class for handling decomposition constraints.
decompositionConstraint(const decompositionConstraint &)=delete
No copy construct.
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 this constraint post-decomposition.
refinementHistory()
Construct from components.
virtual void add(const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
Add this constraint to list of constraints.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh consisting of general polyhedral cells.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh").
All refinement history. Used in unrefinement.
#define defineTypeName(Type)
Define the typeName.
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere).
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< bool > boolList
A List of bools.