Go to the documentation of this file.
45 int main(
int argc,
char *argv[])
83 const labelList& slavePoints = slaves[pointI];
85 if (slavePoints.
size() > 0)
87 Pout<<
"Master point:" << pointI
88 <<
" coord:" << coords[pointI]
89 <<
" connected to untransformed slave points:" <<
endl;
93 Pout<<
" " << coords[slavePoints[i]] <<
endl;
97 const labelList& transformedSlavePoints = transformedSlaves[pointI];
99 if (transformedSlavePoints.
size() > 0)
101 Pout<<
"Master point:" << pointI
102 <<
" coord:" << coords[pointI]
103 <<
" connected to transformed slave points:" <<
endl;
105 forAll(transformedSlavePoints, i)
107 Pout<<
" " << coords[transformedSlavePoints[i]]
128 ec[edgeI] = coupledPatch.
edges()[edgeI].centre
145 const labelList& slaveEdges = slaves[edgeI];
147 if (slaveEdges.
size() > 0)
149 Pout<<
"Master edge:" << edgeI
150 <<
" centre:" << ec[edgeI]
151 <<
" connected to slave edges:" <<
endl;
155 Pout<<
" " << ec[slaveEdges[i]] <<
endl;
158 const labelList& transformedSlaveEdges = transformedSlaves[edgeI];
160 if (transformedSlaveEdges.
size() > 0)
162 Pout<<
"Master edge:" << edgeI
163 <<
" centre:" << ec[edgeI]
164 <<
" connected to transformed slave edges:" <<
endl;
166 forAll(transformedSlaveEdges, i)
168 Pout<<
" " << ec[transformedSlaveEdges[i]]
213 const labelList& slaveFaces = slaves[pointI];
215 if (slaveFaces.
size() > 0)
217 Pout<<
"Master point:" << pointI
219 <<
" connected to " << slaveFaces.
size()
220 <<
" untransformed faces:" <<
endl;
224 Pout<<
" " << fc[slaveFaces[i]] <<
endl;
228 const labelList& transformedSlaveFaces = transformedSlaves[pointI];
230 if (transformedSlaveFaces.
size() > 0)
232 Pout<<
"Master point:" << pointI
233 <<
" connected to " << transformedSlaveFaces.
size()
234 <<
" transformed faces:" <<
endl;
236 forAll(transformedSlaveFaces, i)
238 Pout<<
" " << fc[transformedSlaveFaces[i]] <<
endl;
271 const labelList& pointCells = slaves[pointI];
273 if (pointCells.
size() > 0)
275 Pout<<
"Master point:" << pointI
277 <<
" connected to " << pointCells.
size()
278 <<
" untransformed boundaryCells:" <<
endl;
282 Pout<<
" " << cc[pointCells[i]] <<
endl;
286 const labelList& transformPointCells = transformedSlaves[pointI];
288 if (transformPointCells.
size() > 0)
290 Pout<<
"Master point:" << pointI
291 <<
" connected to " << transformPointCells.
size()
292 <<
" transformed boundaryCells:" <<
endl;
294 forAll(transformPointCells, i)
296 Pout<<
" " << cc[transformPointCells[i]] <<
endl;
virtual const pointField & points() const
Return raw points.
const labelListList & globalPointTransformedSlaves() const
const labelListList & globalPointSlaves() const
const mapDistribute & globalPointBoundaryCellsMap() const
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
const mapDistribute & globalEdgeSlavesMap() const
#define forAll(list, i)
Loop across all elements in list.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
A List obtained as a section of another List.
const labelListList & globalPointBoundaryCells() const
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
const mapDistribute & globalPointSlavesMap() const
const labelList & boundaryCells() const
From boundary cell to mesh cell.
const labelListList & globalPointTransformedBoundaryFaces() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const globalIndexAndTransform & globalTransforms() const
Global transforms numbering.
Class containing processor-to-processor mapping information.
void assign(const UList< T > &)
Assign elements to those from UList.
const labelListList & globalEdgeSlaves() const
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
const labelListList & globalPointBoundaryFaces() const
label nPoints() const
Return number of points supporting patch faces.
label nInternalFaces() const
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
label constructSize() const
Constructed data size.
const vectorField & cellCentres() const
virtual const faceList & faces() const
Return raw faces.
prefixOSstream Pout(cout, "Pout")
const labelListList & globalEdgeTransformedSlaves() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const indirectPrimitivePatch & coupledPatch() const
Return patch of all coupled faces.
const Field< PointType > & faceCentres() const
Return face centres for patch.
const labelListList & globalPointTransformedBoundaryCells() const
void size(const label)
Override size to be inconsistent with allocated storage.
const globalMeshData & globalData() const
Return parallel info.
const mapDistribute & globalPointBoundaryFacesMap() const
A list of faces which address into the list of points.