34 void Foam::pointPatchMapper::calcAddressing()
const
39 || interpolationAddrPtr_
44 <<
"Addressing already calculated"
101 void Foam::pointPatchMapper::clearOut()
106 hasUnmapped_ =
false;
121 pointMapper_(pointMap),
125 patch_.index() < map_.oldPatchNMeshPoints().size()
126 ? map_.oldPatchNMeshPoints()[patch_.index()]
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."
#define forAll(list, i)
Loop across all elements in list.
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.
errorManip< error > abort(error &err)
List< scalar > scalarList
A List of scalars.
void deleteDemandDrivenData(DataPtr &dataPtr)
List< labelList > labelListList
A List of labelList.