Go to the documentation of this file.
32 #ifndef distributedWeightedFvPatchFieldMapper_H
33 #define distributedWeightedFvPatchFieldMapper_H
68 const label singlePatchProc,
91 <<
"Supply a mapDistributeBase if and only if "
92 <<
"singlePatchProc is -1"
118 virtual bool direct()
const
133 <<
"Cannot ask for distributeMap on a non-distributed"
const scalarListList & weights_
virtual const labelListList & addressing() const
#define forAll(list, i)
Loop across all elements in list.
virtual bool hasUnmapped() const
Are there unmapped values? I.e. do all size() elements get.
const label singlePatchProc_
virtual label size() const
virtual const mapDistributeBase & distributeMap() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const mapDistributeBase * distMapPtr_
virtual bool distributed() const
distributedWeightedFvPatchFieldMapper(const label singlePatchProc, const mapDistributeBase *distMapPtr, const labelListList &addressing, const scalarListList &weights)
Construct given addressing.
virtual bool direct() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
label constructSize() const
Constructed data size.
virtual const scalarListList & weights() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Class containing processor-to-processor mapping information.
const labelListList & addressing_
Foam::fvPatchFieldMapper.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual ~distributedWeightedFvPatchFieldMapper()
Destructor.
FieldMapper with weighted mapping from (optionally remote) quantities.