1#ifndef included_AMP_CommVariable_H
2#define included_AMP_CommVariable_H
4#include "AMP/utils/AMP_MPI.h"
5#include "AMP/vectors/SubsetVariable.h"
23 std::shared_ptr<AMP::Discretization::DOFManager>
24 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> )
const override;
30 std::string
className()
const override {
return "CommVariable"; }
31 uint64_t
getID()
const override;
Provides C++ wrapper around MPI routines.
uint64_t getID() const override
Get a unique id hash for the vector.
void writeRestart(int64_t) const override
Write restart data to file.
AMP::AMP_MPI getComm(const AMP::AMP_MPI &comm) const override
Return the comm for the subset.
CommVariable(const std::string &name, const AMP_MPI &comm)
Constructor.
std::shared_ptr< VectorSelector > createVectorSelector() const override
Create a VectorSelector.
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.