Advanced Multi-Physics (AMP)
On-Line Documentation
RandomSubsetVariable.h
Go to the documentation of this file.
1#ifndef included_AMP_RandomSubsetVariable
2#define included_AMP_RandomSubsetVariable
3
4#include "AMP/vectors/SubsetVariable.h"
5
6
7namespace AMP::LinearAlgebra {
8
10{
11private:
12 VectorIndexer::shared_ptr d_Indexer;
13
14public:
15 RandomSubsetVariable( const std::string &name, VectorIndexer::shared_ptr i )
16 : SubsetVariable( name ), d_Indexer( i )
17 {
18 }
19
20 virtual VectorIndexer::shared_ptr getIndexer() { return d_Indexer; }
21 virtual size_t DOFsPerObject() const { return 0; }
22 std::string className() const override { return "RandomSubsetVariable"; }
23 void writeRestart( int64_t ) const override;
25};
26} // namespace AMP::LinearAlgebra
27
28#endif
virtual VectorIndexer::shared_ptr getIndexer()
std::string className() const override
A function that returns the name of a variable.
RandomSubsetVariable(const std::string &name, VectorIndexer::shared_ptr i)
void writeRestart(int64_t) const override
Write restart data to file.
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