41 if (cellData.
size() !=
mesh.nCells())
44 <<
"Number of values " << cellData.
size()
45 <<
" != number of cells " <<
mesh.nCells() <<
nl 49 neighbourCellData.
resize(
mesh.nBoundaryFaces());
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;
103 const labelList& meshEdges = globalData.coupledPatchMeshEdges();
106 globalData.globalEdgeTransformedSlaves();
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;
134 if (!refCast<const coupledPolyPatch>(
pp).owner())
156 if (!refCast<const coupledPolyPatch>(
pp).owner())
void size(const label n)
Older name for setAddressableSize.
void resize(const label len)
Adjust allocated size of list.
label nPoints() const noexcept
Number of mesh points.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
constexpr char nl
The newline '\n' character (0x0a)
Smooth ATC in cells next to a set of patches supplied by type.
label nFaces() const noexcept
Number of mesh faces.
List< labelList > labelListList
List of labelList.
#define forAll(list, i)
Loop across all elements in list.
A non-owning sub-view of a List (allocated or unallocated storage).
bitSet & unset(const bitSet &other)
Unset (subtract) the bits specified in the other bitset, which is a set difference corresponds to the...
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
const globalMeshData & globalData() const
Return parallel info (demand-driven)
errorManip< error > abort(error &err)
label nEdges() const
Number of mesh edges.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A List with indirect addressing. Like IndirectList but does not store addressing. ...
std::enable_if_t< std::is_same_v< bool, TypeT >, bool > set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
A patch is a list of labels that address the faces in the global face list.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())