34 void Foam::pointPatchMapper::calcAddressing()
const
39 || interpolationAddrPtr_
44 <<
"Addressing already calculated"
89 void Foam::pointPatchMapper::clearOut()
108 pointMapper_(pointMap),
112 patch_.index() < map_.oldPatchNMeshPoints().size()
113 ? map_.oldPatchNMeshPoints()[patch_.index()]
116 directAddrPtr_(nullptr),
117 interpolationAddrPtr_(nullptr),
137 <<
"Requested direct addressing for an interpolative mapper."
146 return *directAddrPtr_;
155 <<
"Requested interpolative addressing for a direct mapper."
159 if (!interpolationAddrPtr_)
164 return *interpolationAddrPtr_;
173 <<
"Requested interpolative weights for a direct mapper."
#define forAll(list, i)
Loop across all elements in list.
General field mapper supporting both direct and weighted mapping.
This object provides mapping and fill-in information for point data between the two meshes after the ...
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const scalarListList & weights() const
Return interpolation weights.
virtual const labelUList & directAddressing() const
Return direct addressing.
pointPatchMapper(const pointPatch &patch, const pointMapper &pointMap, const polyTopoChangeMap &map)
Construct from mappers.
virtual ~pointPatchMapper()
Destructor.
virtual bool direct() const
Is the mapping direct?
Basic pointPatch represents a set of points from the mesh.
virtual label index() const =0
Return the index of this patch in the pointBoundaryMesh.
virtual label size() const =0
Return size.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelListList & patchPointMap() const
Patch point renumbering.
Template functions to aid in the implementation of demand driven data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< scalarList > scalarListList
List< label > labelList
A List of labels.
void deleteDemandDrivenData(DataType *&dataPtr)
errorManip< error > abort(error &err)
List< scalar > scalarList
A List of scalars.
List< labelList > labelListList
A List of labelList.