30 Foam::label Foam::fvFieldDecomposer::completePatchID
32 const label procPatchi
35 const fvPatch& procPatch = procMesh_.
boundary()[procPatchi];
41 else if (isA<processorCyclicFvPatch>(procPatch))
43 return refCast<const processorCyclicFvPatch>(procPatch).referPatchID();
60 directFvPatchFieldMapper(static_cast<const
labelList&>(*this))
66 const fvMesh& completeMesh,
67 const fvMesh& procMesh,
70 const surfaceLabelField::Boundary& faceAddressingBf
73 completeMesh_(completeMesh),
75 faceAddressing_(faceAddressing),
76 cellAddressing_(cellAddressing),
77 faceAddressingBf_(faceAddressingBf),
78 patchFieldDecomposers_(procMesh_.
boundary().size())
80 forAll(procMesh_.boundary(), procPatchi)
82 const label completePatchi = completePatchID(procPatchi);
85 if (completePatchi >= 0)
87 patchFieldDecomposers_.set
90 new patchFieldDecomposer
92 faceAddressingBf[completePatchi]
#define forAll(list, i)
Loop across all elements in list.
label size() const
Return the number of elements in the UPtrList.
patchFieldDecomposer(const labelUList &addressing)
Construct given addressing.
fvFieldDecomposer(const fvMesh &completeMesh, const fvMesh &procMesh, const labelList &faceAddressing, const labelList &cellAddressing, const surfaceLabelField::Boundary &faceAddressingBf)
Construct from components.
~fvFieldDecomposer()
Destructor.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< scalar > mag(const dimensioned< Type > &)
UList< label > labelUList
faceListList boundary(nPatches)