1#ifndef included_AMP_NativeThyraVectorData
2#define included_AMP_NativeThyraVectorData
4#include "AMP/vectors/data/GhostDataHelper.hpp"
5#include "AMP/vectors/data/VectorData.h"
6#include "AMP/vectors/trilinos/thyra/ThyraVector.h"
55 std::shared_ptr<VectorData>
cloneData(
const std::string &name =
"" )
const override;
Provides C++ wrapper around MPI routines.
size_t sizeOfDataBlock(size_t i) const override
Number of elements in a data block.
size_t sizeofDataBlockType(size_t) const override
Return the result of sizeof(TYPE) for the given data block.
void setValuesByLocalID(size_t, const size_t *, const void *, const typeID &) override
Set values in the vector by their local offset.
static Teuchos::RCP< const Thyra::VectorBase< double > > getThyraVec(std::shared_ptr< const VectorData > vec)
void putRawData(const void *, const typeID &) override
Copy data into this vector.
void swapData(VectorData &) override
Swap the data with another VectorData object.
static Teuchos::RCP< Thyra::VectorBase< double > > getThyraVec(VectorData &v)
size_t numberOfDataBlocks() const override
Number of blocks of contiguous data in the Vector.
virtual ~NativeThyraVectorData()
Destructor.
void addValuesByLocalID(size_t, const size_t *, const void *, const typeID &) override
Add values to vector entities by their local offset.
typeID getType(size_t) const override
Return the typeid of the given block.
const void * getRawDataBlockAsVoid(size_t i) const override
Return a pointer to a particular block of memory in the vector.
void getRawData(void *, const typeID &) const override
Copy data out of this vector.
std::string VectorDataName() const override
Get the type name.
NativeThyraVectorData()
Empty constructor.
void * getRawDataBlockAsVoid(size_t i) override
Return a pointer to a particular block of memory in the vector.
Teuchos::RCP< Thyra::VectorBase< double > > getVec()
NativeThyraVectorData(Teuchos::RCP< Thyra::VectorBase< double > > vec, size_t localsize, AMP_MPI comm)
Construct a wrapper for a Thyra Vec from a set of parameters.
uint64_t getDataID() const override
A unique id for the underlying data allocation.
Teuchos::RCP< const Thyra::VectorBase< double > > getVec() const
static Teuchos::RCP< const Thyra::VectorBase< double > > getThyraVec(const VectorData &v)
void getValuesByLocalID(size_t, const size_t *, void *, const typeID &) const override
Get local values in the vector by their global offset.
Teuchos::RCP< Thyra::VectorBase< double > > d_thyraVec
std::shared_ptr< VectorData > cloneData(const std::string &name="") const override
Clone the data.
A class used to hold vector data.
Class to store type info.