Template Class OwningDistributedFullGrid

Inheritance Relationships

Base Type

Class Documentation

template<typename FG_ELEMENT, DimType DIM>
class OwningDistributedFullGrid : public combigrid::DistributedFullGrid<FG_ELEMENT, DIM>

OwningDistributedFullGrid : a DistributedFullGrid with ownership of the data.

subclass of DistributedFullGrid that allocates a data vector of type FG_ELEMENT

Public Functions

OwningDistributedFullGrid() = default
inline explicit OwningDistributedFullGrid(DimType dim, const LevelVector &levels, CommunicatorType const &comm, const std::vector<BoundaryType> &hasBdrPoints, const std::vector<int> &procs, bool forwardDecomposition = false, const std::vector<IndexVector> &decomposition = std::vector<IndexVector>())
inline const std::vector<FG_ELEMENT> &getDataVector() const
inline void setDataVector(std::vector<FG_ELEMENT> &&otherVector)
inline void swapDataVector(std::vector<FG_ELEMENT> &otherVector)