31 Foam::label Foam::fvFieldReconstructor::completePatchID
34 const label procPatchi
37 const fvPatch& procPatch = procMeshes_[proci].boundary()[procPatchi];
43 else if (isA<processorCyclicFvPatch>(procPatch))
45 return refCast<const processorCyclicFvPatch>(procPatch).referPatchID();
58 const fvMesh& completeMesh,
59 const PtrList<fvMesh>& procMeshes,
62 const PtrList<surfaceLabelField::Boundary>& faceProcAddressingBf
65 completeMesh_(completeMesh),
66 procMeshes_(procMeshes),
67 faceProcAddressing_(faceProcAddressing),
68 cellProcAddressing_(cellProcAddressing),
69 faceProcAddressingBf_(faceProcAddressingBf),
74 const fvMesh& procMesh = procMeshes_[proci];
78 faceProcAddressing[proci].
size() != procMesh.nFaces()
79 || cellProcAddressing[proci].size() != procMesh.nCells()
83 <<
"Size of maps does not correspond to size of mesh" 84 <<
" for processor " << proci <<
endl 85 <<
"faceProcAddressing : " << faceProcAddressing[proci].size()
86 <<
" nFaces : " << procMesh.nFaces() <<
endl 87 <<
"cellProcAddressing : " << cellProcAddressing[proci].size()
88 <<
" nCell : " << procMesh.nCells() <<
endl 89 <<
" nFaces : " << procMesh.boundary().size()
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Holds information (coordinate and normal) regarding nearest wall point.
label size() const
Return the number of elements in the UPtrList.
fvFieldReconstructor(const fvMesh &mesh, const PtrList< fvMesh > &procMeshes, const labelListList &faceProcAddressing, const labelListList &cellProcAddressing, const PtrList< surfaceLabelField::Boundary > &faceProcAddressingBf)
Construct from components.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.