1#ifndef included_AMP_SubsetVectorData
2#define included_AMP_SubsetVectorData
4#include "AMP/discretization/DOF_Manager.h"
5#include "AMP/vectors/Vector.h"
6#include "AMP/vectors/data/GhostDataHelper.hpp"
7#include "AMP/vectors/data/VectorData.h"
22 std::shared_ptr<AMP::Discretization::DOFManager>
d_DOFManager =
nullptr;
84 std::shared_ptr<VectorData>
cloneData(
const std::string &name =
"" )
const override;
101 std::shared_ptr<AMP::Discretization::DOFManager>
Provides C++ wrapper around MPI routines.
void setValuesByLocalID(size_t, const size_t *, const void *, const typeID &) override
Set values in the vector by their local offset.
std::shared_ptr< VectorData > cloneData(const std::string &name="") const override
Clone the data.
void swapData(VectorData &) override
Swap the data with another VectorData object.
std::string VectorDataName() const override
Get the type name.
size_t d_parentLocalStartID
std::vector< size_t > d_dataBlockSize
bool hasContiguousData() const override
returns whether all data for the vector on a single process is contiguous
Vector::shared_ptr d_ViewVector
void getValuesByLocalID(size_t, const size_t *, void *, const typeID &) const override
Get local values in the vector by their global offset.
std::vector< size_t > d_SubsetLocalIDToViewGlobalID
std::vector< void * > d_dataBlockPtr
SubsetVectorData(std::shared_ptr< SubsetVectorParameters > params)
size_t sizeOfDataBlock(size_t i) const override
Number of elements in a data block.
void putRawData(const void *in, const typeID &id) override
Copy data into this vector.
std::shared_ptr< AMP::Discretization::DOFManager > d_DOFManager
void * getRawDataBlockAsVoid(size_t i) override
Return a pointer to a particular block of memory in the vector.
const void * getRawDataBlockAsVoid(size_t i) const override
Return a pointer to a particular block of memory in the vector.
void getRawData(void *out, const typeID &id) const override
Copy data out of this vector.
size_t numberOfDataBlocks() const override
Number of blocks of contiguous data in the Vector.
size_t sizeofDataBlockType(size_t) const override
Return the result of sizeof(TYPE) for the given data block.
void addValuesByLocalID(size_t, const size_t *, const void *, const typeID &) override
Add values to vector entities by their local offset.
const AMP_MPI & getComm() const override
Get the communicator.
uint64_t getDataID() const override
A unique id for the underlying data allocation.
typeID getType(size_t) const override
Return the typeid of the given block.
Parameters used to instantiate a Vector.
std::shared_ptr< AMP::Discretization::DOFManager > d_DOFManager
The DOF_Manager for a vector.
Vector::shared_ptr d_ViewVector
std::shared_ptr< CommunicationList > d_CommList
The CommunicationList for a vector.
A class used to hold vector data.
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Class to store type info.