34 void Foam::pointPatchMapper::calcAddressing()
const 39 || interpolationAddrPtr_
44 <<
"Addressing already calculated" 101 void Foam::pointPatchMapper::clearOut()
106 hasUnmapped_ =
false;
121 pointMapper_(pointMap),
130 directAddrPtr_(
nullptr),
131 interpolationAddrPtr_(
nullptr),
151 <<
"Requested direct addressing for an interpolative mapper." 160 return *directAddrPtr_;
169 <<
"Requested interpolative addressing for a direct mapper." 173 if (!interpolationAddrPtr_)
178 return *interpolationAddrPtr_;
187 <<
"Requested interpolative weights for a direct mapper."
List< labelList > labelListList
A List of labelList.
pointPatchMapper(const pointPatch &patch, const pointMapper &pointMap, const polyTopoChangeMap &map)
Construct from mappers.
const labelListList & patchPointMap() const
Patch point renumbering.
#define forAll(list, i)
Loop across all elements in list.
const labelList & oldPatchNMeshPoints() const
Return numbers of mesh points per old patch.
virtual const labelUList & directAddressing() const
Return direct addressing.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool direct() const
Is the mapping direct.
virtual const scalarListList & weights() const
Return interpolation weights.
void size(const label)
Override size to be inconsistent with allocated storage.
generalPointPatchFieldMapper()
Null constructor.
List< scalarList > scalarListList
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
List< scalar > scalarList
A List of scalars.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Template functions to aid in the implementation of demand driven data.
virtual ~pointPatchMapper()
Destructor.
Basic pointPatch represents a set of points from the mesh.
virtual label index() const =0
Return the index of this patch in the pointBoundaryMesh.
This object provides mapping and fill-in information for point data between the two meshes after the ...
void deleteDemandDrivenData(DataPtr &dataPtr)
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual label size() const =0
Return size.