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"
virtual bool direct() const
Is it a direct (non-interpolating) mapper?
virtual const scalarListList & weights() const
Return the interpolation weights.
virtual bool distributed() const
Does the mapper have remote contributions?
void size(const label n)
Older name for setAddressableSize.
FieldMapper with weighted mapping from (optionally remote) quantities.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
label constructSize() const noexcept
Constructed data size.
virtual label size() const
The size of the mapper.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
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.
A FieldMapper for finite-volume patch fields.
virtual const mapDistributeBase & distributeMap() const
Return the distribution map.
virtual ~distributedWeightedFvPatchFieldMapper()=default
Destructor.
Class containing processor-to-processor mapping information.
virtual const labelListList & addressing() const
Return the interpolation addressing.