1#ifndef included_AMP_SubsetVariable_H
2#define included_AMP_SubsetVariable_H
4#include "AMP/vectors/Variable.h"
5#include "AMP/vectors/Vector.h"
28 virtual std::shared_ptr<AMP::Discretization::DOFManager>
29 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> manager )
const = 0;
96 std::string
className()
const override {
return "SubsetVariable"; }
Provides C++ wrapper around MPI routines.
A variable used to create a SubsetVector.
virtual Vector::const_shared_ptr view(Vector::const_shared_ptr) const
This vector is a subset of an AMP Vector.
SubsetVariable(const std::string &name)
Constructor.
virtual AMP::AMP_MPI getComm(const AMP::AMP_MPI &comm) const =0
Return the comm for the subset.
std::shared_ptr< VectorSelector > createVectorSelector() const override
Create a VectorSelector.
virtual std::shared_ptr< AMP::Discretization::DOFManager > getSubsetDOF(std::shared_ptr< AMP::Discretization::DOFManager > manager) const =0
Return a DOFManager that describes the subset.
void writeRestart(int64_t) const override
Write restart data to file.
std::string className() const override
A function that returns the name of a variable.
virtual Vector::shared_ptr view(Vector::shared_ptr) const
This vector is a subset of an AMP Vector.
A description of the data in the vector.
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
std::shared_ptr< const Vector > const_shared_ptr