Advanced Multi-Physics (AMP)
On-Line Documentation
CommVariable.h
Go to the documentation of this file.
1#ifndef included_AMP_CommVariable_H
2#define included_AMP_CommVariable_H
3
4#include "AMP/utils/AMP_MPI.h"
5#include "AMP/vectors/SubsetVariable.h"
6
7namespace AMP::LinearAlgebra {
8
9
15{
16public:
21 CommVariable( const std::string &name, const AMP_MPI &comm );
22
23 std::shared_ptr<AMP::Discretization::DOFManager>
24 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> ) const override;
25
26 AMP::AMP_MPI getComm( const AMP::AMP_MPI &comm ) const override;
27
28
29public: // Functions inherited from Variable
30 std::string className() const override { return "CommVariable"; }
31 uint64_t getID() const override;
32 std::shared_ptr<VectorSelector> createVectorSelector() const override;
33 void writeRestart( int64_t ) const override;
34 CommVariable( int64_t );
35
36private:
39};
40} // namespace AMP::LinearAlgebra
41
42#endif
Provides C++ wrapper around MPI routines.
Definition AMP_MPI.h:63
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.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page