37namespace decompositionConstraints
59 zones_(coeffDict_.get<
wordRes>(
"zones"))
61 if (decompositionConstraint::debug)
63 Info<<
type() <<
" : adding constraints to keep owner and neighbour"
64 <<
" of faces in zones " << zones_
65 <<
" on same processor" <<
endl;
78 if (decompositionConstraint::debug)
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;
120 if (decompositionConstraint::debug & 2)
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];
193 if (decompositionConstraint::debug & 2)
196 Info<<
type() <<
" : changed decomposition on " << nChanged
200 }
while (nChanged > 0);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
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 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
wordList names() const
A list of the zone names.
virtual void apply()=0
Apply bins.
Abstract class for handling decomposition constraints.
Constraint to keep/move owner and neighbour of faceZone onto same processor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A subset of mesh faces organised as a primitive patch.
Sums a given list of (at least two or more) fields and outputs the result into a new field,...
Mesh consisting of general polyhedral cells.
A List of wordRe with additional matching capabilities.
#define defineTypeName(Type)
Define the typeName.
const labelIOList & zoneIDs
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)