template<typename ZoltanTypes>
tk::zoltan::GeometricMeshElemAdapter class

GeometricMeshElemAdapter : Zoltan2::MeshAdapter

GeometricMeshElemAdapter specializes those virtual member functions of Zoltan2::MeshAdapter that are required for mesh-element-based geometric partitioning with Zoltan2

Constructors, destructors, conversion operators

GeometricMeshElemAdapter(std::size_t nelem, const std::array<std::vector<tk::real>, 3>& centroid, const std::vector<long long>& elemid)

Public functions

auto getLocalNumOf(MeshEntityType) const override -> std::size_t
void getIDsViewOf(MeshEntityType, const gno_t*& Ids) const override
void getTopologyViewOf(MeshEntityType, const EntityTopologyType*& Types) const override
auto getDimension() const override -> int
void getCoordinatesViewOf(MeshEntityType, const scalar_t*& coords, int& stride, int dim) const override

Function documentation

template<typename ZoltanTypes>
tk::zoltan::GeometricMeshElemAdapter<ZoltanTypes>::GeometricMeshElemAdapter(std::size_t nelem, const std::array<std::vector<tk::real>, 3>& centroid, const std::vector<long long>& elemid)

Parameters
nelem in Number of elements in mesh graph on this rank
centroid in Mesh element coordinates (centroids)
elemid in Mesh element global IDs

Constructor

template<typename ZoltanTypes>
std::size_t tk::zoltan::GeometricMeshElemAdapter<ZoltanTypes>::getLocalNumOf(MeshEntityType) const override

Returns Number of mesh elements on this rank

Returns the number of mesh entities on this rank

template<typename ZoltanTypes>
void tk::zoltan::GeometricMeshElemAdapter<ZoltanTypes>::getIDsViewOf(MeshEntityType, const gno_t*& Ids) const override

Parameters
Ids in/out Pointer to the list of global element Ids on this rank

Provide a pointer to this rank's identifiers

template<typename ZoltanTypes>
void tk::zoltan::GeometricMeshElemAdapter<ZoltanTypes>::getTopologyViewOf(MeshEntityType, const EntityTopologyType*& Types) const override

Parameters
Types Pointer to the list of entity topology types on this rank

Provide a pointer to the entity topology types

template<typename ZoltanTypes>
int tk::zoltan::GeometricMeshElemAdapter<ZoltanTypes>::getDimension() const override

Returns Number of mesh dimension

Return dimensionality of the mesh

template<typename ZoltanTypes>
void tk::zoltan::GeometricMeshElemAdapter<ZoltanTypes>::getCoordinatesViewOf(MeshEntityType, const scalar_t*& coords, int& stride, int dim) const override

Parameters
coords in Pointer to a list of coordinate values for the dimension
stride in/out Describes the layout of the coordinate values in the coords list. If stride is one, then the ith coordinate value is coords[i], but if stride is two, then the ith coordinate value is coords[2*i]
dim Value from 0 to one less than getEntityCoordinateDimension() specifying which dimension is being provided in the coords list

Provide a pointer to one dimension of mesh element coordinates