1#ifndef included_AMP_StridedVariable_H
2#define included_AMP_StridedVariable_H
4#include "AMP/vectors/SubsetVariable.h"
24 std::shared_ptr<AMP::Discretization::DOFManager>
25 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> )
const override;
31 std::string
className()
const override {
return "StridedVariable"; }
Provides C++ wrapper around MPI routines.
An AMP Variable that describes how to stride a vector to create a SubsetVector.
AMP::AMP_MPI getComm(const AMP::AMP_MPI &comm) const override
Return the comm for the subset.
void writeRestart(int64_t) const override
Write restart data to file.
StridedVariable(const std::string &name, size_t offset, size_t stride)
Constructor.
std::shared_ptr< VectorSelector > createVectorSelector() const override
Create a VectorSelector.
std::shared_ptr< AMP::Discretization::DOFManager > getSubsetDOF(std::shared_ptr< AMP::Discretization::DOFManager >) const override
Return a DOFManager that describes the subset.
std::string className() const override
A function that returns the name of a variable.
A variable used to create a SubsetVector.