Advanced Multi-Physics (AMP)
On-Line Documentation
SubsetVariable.h
Go to the documentation of this file.
1#ifndef included_AMP_SubsetVariable_H
2#define included_AMP_SubsetVariable_H
3
4#include "AMP/vectors/Variable.h"
5#include "AMP/vectors/Vector.h"
6
7
8namespace AMP::LinearAlgebra {
9
10
17{
18public:
22 explicit inline SubsetVariable( const std::string &name ) : Variable( name ) {}
23
28 virtual std::shared_ptr<AMP::Discretization::DOFManager>
29 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> manager ) const = 0;
30
35 virtual AMP::AMP_MPI getComm( const AMP::AMP_MPI &comm ) const = 0;
36
65
94
95public: // Functions inherited from Variable
96 std::string className() const override { return "SubsetVariable"; }
97 std::shared_ptr<VectorSelector> createVectorSelector() const override;
98 void writeRestart( int64_t ) const override;
99 SubsetVariable( int64_t );
100};
101
102
103} // namespace AMP::LinearAlgebra
104
105
106#endif
Provides C++ wrapper around MPI routines.
Definition AMP_MPI.h:63
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.
Definition Variable.h:46
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Definition Vector.h:60
std::shared_ptr< const Vector > const_shared_ptr
Definition Vector.h:65



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