32 #ifndef distributedWeightedFvPatchFieldMapper_H 33 #define distributedWeightedFvPatchFieldMapper_H 53 const label singlePatchProc_;
68 if (singlePatchProc_ == -1)
92 const label singlePatchProc,
98 singlePatchProc_(singlePatchProc),
99 distMapPtr_(distMapPtr),
100 addressing_(addressing),
106 if (addressing_[i].size() == 0)
112 if ((singlePatchProc_ == -1) != (distMapPtr_ !=
nullptr))
116 "distributedWeightedFvPatchFieldMapper::" 117 "distributedWeightedFvPatchFieldMapper(..)" 118 ) <<
"Supply a distributionMapBase if and only if " 119 <<
"singlePatchProc is -1" 120 <<
" singlePatchProc_:" << singlePatchProc_
121 <<
" distMapPtr_:" << (distMapPtr_ !=
nullptr)
#define forAll(list, i)
Loop across all elements in list.
FieldMapper with weighted mapping from (optionally remote) quantities.
Class containing processor-to-processor mapping information.
errorManipArg< error, int > exit(error &err, const int errNo=1)
FOR_ALL_FIELD_TYPES(DEFINE_FIELD_MAPPER_OPERATOR,)
Map a field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
virtual bool hasUnmapped() const
Are there unmapped values? I.e. do all size() elements get.
Pre-declare SubField and related Field type.
Foam::fvPatchFieldMapper.
virtual const labelListList & addressing() const
void operator()(Field< Type > &f, const tmp< Field< Type >> &tmapF) const
Map a temporary field.
virtual const scalarListList & weights() const
label constructSize() const
Constructed data size.
DEFINE_FIELD_MAPPER_OPERATOR(label,)
Map a label field.
virtual ~distributedWeightedFvPatchFieldMapper()
Destructor.
distributedWeightedFvPatchFieldMapper(const label singlePatchProc, const distributionMapBase *distMapPtr, const labelListList &addressing, const scalarListList &weights)
Construct given addressing.
A class for managing temporary objects.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.