Go to the documentation of this file.
46 template<
class Type,
class CombineOp>
55 case NEARESTPATCHFACEAMI:
57 lst = AMI().interpolateToSource(
Field<Type>(std::move(lst)), cop);
66 map().constructSize(),
86 case NEARESTPATCHFACEAMI:
88 lst = AMI().interpolateToTarget(
Field<Type>(std::move(lst)));
93 map().reverseDistribute(sampleSize(), lst);
100 template<
class Type,
class CombineOp>
109 case NEARESTPATCHFACEAMI:
111 lst = AMI().interpolateToTarget(
Field<Type>(std::move(lst)), cop);
116 label cSize = sampleSize();
122 map().constructMap(),
nearest patch face + AMI interpolation
static constexpr const zero Zero
Global zero (0)
const mapDistribute & map() const
Return reference to the parallel distribution map.
static void distribute(const Pstream::commsTypes commsType, const List< labelPair > &schedule, const label constructSize, const labelListList &subMap, const bool subHasFlip, const labelListList &constructMap, const bool constructHasFlip, List< T > &, const negateOp &negOp, const int tag=UPstream::msgType())
Distribute data. Note:schedule only used for.
const sampleMode mode_
What to sample.
static commsTypes defaultCommsType
Default commsType.
void interpolateToSource(const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
Generic templated field type.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
const AMIPatchToPatchInterpolation & AMI(const bool forceUpdate=false) const
Return reference to the AMI interpolator.
Functor to negate primitives. Dummy for most other types.
void reverseDistribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.