35#ifndef distributedWeightedFvPatchFieldMapper_H
36#define distributedWeightedFvPatchFieldMapper_H
69 const label singlePatchProc,
77 distMapPtr_(distMapPtr),
98 if (singlePatchProc >= 0)
107 error = !distMapPtr_;
117 <<
"Supply a mapDistributeBase if and only if "
118 <<
"singlePatchProc is -1"
119 <<
" singlePatchProc:" << singlePatchProc
120 <<
" distMapPtr_:" << (distMapPtr_ !=
nullptr)
131 virtual label
size()
const
143 virtual bool direct()
const
158 <<
"Cannot ask for distributeMap on a non-distributed"
void size(const label n)
Older name for setAddressableSize.
virtual label size() const
The size of the mapper.
virtual bool hasUnmapped() const
Any unmapped values?
distributedWeightedFvPatchFieldMapper(const label singlePatchProc, const label comm, const mapDistributeBase *distMapPtr, const labelListList &addressing, const scalarListList &weights)
Construct given addressing.
virtual ~distributedWeightedFvPatchFieldMapper()=default
Destructor.
virtual const scalarListList & weights() const
Return the interpolation weights.
virtual bool distributed() const
Does the mapper have remote contributions?
virtual const labelListList & addressing() const
Return the interpolation addressing.
virtual bool direct() const
Is it a direct (non-interpolating) mapper?
virtual const mapDistributeBase & distributeMap() const
Return the distribution map.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
fvPatchFieldMapper()=default
Default construct.
Class containing processor-to-processor mapping information.
label constructSize() const noexcept
Constructed data size.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< scalarList > scalarListList
List of scalarList.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)