41 if (cellData.
size() !=
mesh.nCells())
44 <<
"Number of values " << cellData.
size()
45 <<
" != number of cells " <<
mesh.nCells() <<
nl
49 neighbourCellData.
resize(
mesh.nBoundaryFaces());
70 bitSet isMaster(
mesh.nPoints());
71 bitSet unvisited(
mesh.nPoints(),
true);
73 const globalMeshData& globalData =
mesh.globalData();
74 const labelList& meshPoints = globalData.coupledPatch().meshPoints();
77 globalData.globalPointTransformedSlaves();
81 const label meshPointi = meshPoints[i];
83 if (!slaves[i].empty() || !transformedSlaves[i].empty())
85 isMaster.set(meshPointi);
87 unvisited.
unset(meshPointi);
91 isMaster |= unvisited;
110 const label meshEdgei = meshEdges[i];
112 if (!slaves[i].empty() || !transformedSlaves[i].empty())
114 isMaster.
set(meshEdgei);
116 unvisited.
unset(meshEdgei);
120 isMaster |= unvisited;
158 isMaster.unset(
pp.range());
163 isMaster.unset(
pp.range());
182 isMaster.unset(
pp.range());
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void resize(const label len)
Adjust allocated size of list.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
A non-owning sub-view of a List (allocated or unallocated storage).
A List with indirect addressing. Like IndirectList but does not store addressing.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool unset(const label i)
Unset the bool entry at specified position, always false for out-of-range access.
void size(const label n)
Older name for setAddressableSize.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
void set(const bitSet &bitset)
Set specified bits from another bitset.
bitSet & unset(const bitSet &other)
Unset (subtract) the bits specified in the other bitset, which is a set difference corresponds to the...
Smooth ATC in cells next to a set of patches supplied by type.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
const labelListList & globalEdgeTransformedSlaves() const
const labelList & coupledPatchMeshEdges() const
Return map from coupledPatch edges to mesh edges.
const labelListList & globalPointSlaves() const
const labelListList & globalPointTransformedSlaves() const
const indirectPrimitivePatch & coupledPatch() const
Return patch of all coupled faces.
const labelListList & globalEdgeSlaves() const
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
label nFaces() const noexcept
Number of mesh faces.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.