31 Foam::label Foam::fvFieldReconstructor::completePatchID
34 const label procPatchi
37 const fvPatch& procPatch = procMeshes_[proci].boundary()[procPatchi];
43 else if (isA<processorCyclicFvPatch>(procPatch))
46 refCast<const processorCyclicFvPatch>(procPatch)
60 const fvMesh& completeMesh,
61 const PtrList<fvMesh>& procMeshes,
64 const PtrList<surfaceLabelField::Boundary>& faceProcAddressingBf
67 completeMesh_(completeMesh),
68 procMeshes_(procMeshes),
69 faceProcAddressing_(faceProcAddressing),
70 cellProcAddressing_(cellProcAddressing),
71 faceProcAddressingBf_(faceProcAddressingBf)
75 const fvMesh& procMesh = procMeshes_[proci];
79 faceProcAddressing[proci].size() != procMesh.nFaces()
80 || cellProcAddressing[proci].size() != procMesh.nCells()
84 <<
"Size of maps does not correspond to size of mesh"
85 <<
" for processor " << proci <<
endl
86 <<
"faceProcAddressing : " << faceProcAddressing[proci].size()
87 <<
" nFaces : " << procMesh.nFaces() <<
endl
88 <<
"cellProcAddressing : " << cellProcAddressing[proci].size()
89 <<
" nCell : " << procMesh.nCells() <<
endl
90 <<
" nFaces : " << procMesh.boundary().size()
99 bool Foam::fvFieldReconstructor::reconstructs
102 const HashSet<word>& selectedFields
107 #define DO_FV_FIELDS_TYPE(Type, nullArg) \
109 || reconstructs<VolField<Type>::Internal>(objects, selectedFields) \
110 || reconstructs<VolField<Type>>(objects, selectedFields) \
111 || reconstructs<SurfaceField<Type>>(objects, selectedFields);
113 #undef DO_FV_FIELDS_TYPE
#define forAll(list, i)
Loop across all elements in list.
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< labelList > labelListList
A List of labelList.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)