1#ifndef included_AMP_CommSelfVariable_H
2#define included_AMP_CommSelfVariable_H
4#include "AMP/utils/AMP_MPI.h"
5#include "AMP/vectors/SubsetVariable.h"
22 std::shared_ptr<AMP::Discretization::DOFManager>
23 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> )
const override;
29 std::string
className()
const override {
return "CommSelfVariable"; }
30 uint64_t
getID()
const override;
Provides C++ wrapper around MPI routines.
uint64_t getID() const override
Get a unique id hash for the vector.
AMP::AMP_MPI getComm(const AMP::AMP_MPI &comm) const override
Return the comm for the subset.
Vector::shared_ptr view(Vector::shared_ptr) const override
This vector is a subset of an AMP Vector.
CommSelfVariable(int64_t)
void writeRestart(int64_t) const override
Write restart data to file.
std::shared_ptr< VectorSelector > createVectorSelector() const override
Create a VectorSelector.
CommSelfVariable(const std::string &name)
Constructor.
std::string className() const override
A function that returns the name of a variable.
std::shared_ptr< AMP::Discretization::DOFManager > getSubsetDOF(std::shared_ptr< AMP::Discretization::DOFManager >) const override
Return a DOFManager that describes the subset.
A variable used to create a SubsetVector.
virtual Vector::shared_ptr view(Vector::shared_ptr) const
This vector is a subset of an AMP Vector.
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.