Advanced Multi-Physics (AMP)
On-Line Documentation
StridedVariable.h
Go to the documentation of this file.
1#ifndef included_AMP_StridedVariable_H
2#define included_AMP_StridedVariable_H
3
4#include "AMP/vectors/SubsetVariable.h"
5
6namespace AMP::LinearAlgebra {
7
15{
16public:
22 StridedVariable( const std::string &name, size_t offset, size_t stride );
23
24 std::shared_ptr<AMP::Discretization::DOFManager>
25 getSubsetDOF( std::shared_ptr<AMP::Discretization::DOFManager> ) const override;
26
27 AMP::AMP_MPI getComm( const AMP::AMP_MPI &comm ) const override;
28
29 std::shared_ptr<VectorSelector> createVectorSelector() const override;
30
31 std::string className() const override { return "StridedVariable"; }
32
33 void writeRestart( int64_t ) const override;
34 StridedVariable( int64_t );
35
36private:
38 size_t d_offset = 0;
39 size_t d_stride = 1;
40};
41} // namespace AMP::LinearAlgebra
42
43#endif
Provides C++ wrapper around MPI routines.
Definition AMP_MPI.h:63
An AMP Variable that describes how to stride a vector to create a SubsetVector.
AMP::AMP_MPI getComm(const AMP::AMP_MPI &comm) const override
Return the comm for the subset.
void writeRestart(int64_t) const override
Write restart data to file.
StridedVariable(const std::string &name, size_t offset, size_t stride)
Constructor.
std::shared_ptr< VectorSelector > createVectorSelector() const override
Create a VectorSelector.
std::shared_ptr< AMP::Discretization::DOFManager > getSubsetDOF(std::shared_ptr< AMP::Discretization::DOFManager >) const override
Return a DOFManager that describes the subset.
std::string className() const override
A function that returns the name of a variable.
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