37 namespace decompositionConstraints
43 decompositionConstraint,
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;
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];
193 Info<<
type() <<
" : changed decomposition on " List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
Abstract class for handling decomposition constraints.
const labelIOList & zoneIDs
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
Macros for easy insertion into run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
preserveFaceZones(const dictionary &dict)
Construct with constraint dictionary.
void setSize(const label n)
Alias for resize()
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 List of wordRe with additional matching capabilities.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
int debug
Static debugging option.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
addToRunTimeSelectionTable(decompositionConstraint, geometric, dictionary)
wordList names() const
A list of the zone names.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.
A subset of mesh faces organised as a primitive patch.
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
defineTypeName(geometric)