35#ifndef Foam_FieldMapper_H
36#define Foam_FieldMapper_H
67 virtual label
size()
const = 0;
70 virtual bool direct()
const = 0;
86 <<
"attempt to access null direct addressing"
96 <<
"attempt to access null distributeMap"
99 return NullObjectRef<mapDistributeBase>();
106 <<
"attempt to access null interpolation addressing"
116 <<
"attempt to access null interpolation weights"
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Abstract base class to hold the Field mapping addressing and weights.
virtual bool direct() const =0
Is it a direct (non-interpolating) mapper?
FieldMapper()=default
Default construct.
virtual const labelUList & directAddressing() const
Return the direct addressing values.
virtual ~FieldMapper()=default
Destructor.
virtual const scalarListList & weights() const
Return the interpolation weights.
virtual label size() const =0
The size of the mapper.
virtual bool distributed() const
Does the mapper have remote contributions?
virtual const labelListList & addressing() const
Return the interpolation addressing.
virtual bool hasUnmapped() const =0
Any unmapped values?
tmp< Field< Type > > operator()(const Field< Type > &fld) const
Perform mapping on the given field.
virtual const mapDistributeBase & distributeMap() const
Return the distribution map.
Generic templated field type.
static const List< labelList > & null()
Return a null List.
static const UList< label > & null()
Return a UList reference to a nullObject.
Class containing processor-to-processor mapping information.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.