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 mapDistributeBase if and only if " 119 <<
"singlePatchProc is -1" 120 <<
" singlePatchProc_:" << singlePatchProc_
121 <<
" distMapPtr_:" << (distMapPtr_ !=
nullptr)
146 virtual void operator()
152 virtual void operator()
158 virtual void operator()
164 virtual void operator()
170 virtual void operator()
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
FieldMapper with weighted mapping from (optionally remote) quantities.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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 void operator()(Field< scalar > &f, const Field< scalar > &mapF) const
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
virtual const scalarListList & weights() const
Class containing processor-to-processor mapping information.
virtual ~distributedWeightedFvPatchFieldMapper()
Destructor.
label constructSize() const
Constructed data size.
A class for managing temporary objects.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
distributedWeightedFvPatchFieldMapper(const label singlePatchProc, const mapDistributeBase *distMapPtr, const labelListList &addressing, const scalarListList &weights)
Construct given addressing.