Advanced Multi-Physics (AMP)
On-Line Documentation
CommSelfVariable.h
Go to the documentation of this file.
1#ifndef included_AMP_CommSelfVariable_H
2#define included_AMP_CommSelfVariable_H
3
4#include "AMP/utils/AMP_MPI.h"
5#include "AMP/vectors/SubsetVariable.h"
6
7namespace AMP::LinearAlgebra {
8
9
14class CommSelfVariable final : public SubsetVariable
15{
16public:
20 CommSelfVariable( const std::string &name );
21
22 std::shared_ptr<AMP::Discretization::DOFManager>
23 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> ) const override;
24
25 AMP::AMP_MPI getComm( const AMP::AMP_MPI &comm ) const override;
26
27
28public: // Functions inherited from Variable
29 std::string className() const override { return "CommSelfVariable"; }
30 uint64_t getID() const override;
31 std::shared_ptr<VectorSelector> createVectorSelector() const override;
32 void writeRestart( int64_t ) const override;
33 CommSelfVariable( int64_t );
36
37private:
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.
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.
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.
Definition Vector.h:60



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