Go to the documentation of this file.
37 namespace decompositionConstraints
43 decompositionConstraint,
59 zones_(coeffDict_.get<
wordRes>(
"zones"))
63 Info<<
type() <<
" : adding constraints to keep owner and neighbour"
64 <<
" of faces in zones " << zones_
65 <<
" on same processor" <<
endl;
80 Info<<
type() <<
" : adding constraints to keep owner and neighbour"
81 <<
" of faces in zones " << zones_
82 <<
" on same processor" <<
endl;
104 label nUnblocked = 0;
106 for (
const label zonei :
zoneIDs)
110 for (
const label meshFacei : fz)
112 if (blockedFace[meshFacei])
114 blockedFace[meshFacei] =
false;
123 Info<<
type() <<
" : unblocked " << nUnblocked <<
" faces" <<
endl;
151 getMinBoundaryValue(
mesh, decomposition, destProc);
162 for (
const label zonei :
zoneIDs)
166 for (
const label facei : fz)
168 const label own =
mesh.faceOwner()[facei];
170 if (
mesh.isInternalFace(facei))
172 const label nei =
mesh.faceNeighbour()[facei];
173 if (decomposition[nei] < decomposition[own])
175 decomposition[own] = decomposition[nei];
181 const label bFaceI = facei-
mesh.nInternalFaces();
182 if (destProc[bFaceI] < decomposition[own])
184 decomposition[own] = destProc[bFaceI];
196 Info<<
type() <<
" : changed decomposition on " << nChanged
200 }
while (nChanged > 0);
int debug
Static debugging option.
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.
Abstract class for handling decomposition constraints.
defineTypeName(geometric)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelIOList & zoneIDs
preserveFaceZones(const dictionary &dict)
Construct with constraint dictionary.
Mesh consisting of general polyhedral cells.
virtual void add(const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
Add my constraints to list of constraints.
A subset of mesh faces organised as a primitive patch.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void setSize(const label n)
Alias for resize()
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
reduce(hasMovingMesh, orOp< bool >())
Macros for easy insertion into run-time selection tables.
wordList names() const
A list of the zone names.
addToRunTimeSelectionTable(decompositionConstraint, geometric, dictionary)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A List of wordRe with additional matching capabilities.