Advanced Multi-Physics (AMP)
On-Line Documentation
AMPCSRMatrixParameters.h
Go to the documentation of this file.
1#ifndef included_AMP_AMPCSRMatrixParameters
2#define included_AMP_AMPCSRMatrixParameters
3
4#include "AMP/discretization/DOF_Manager.h"
5#include "AMP/matrices/GetRowHelper.h"
6#include "AMP/matrices/MatrixParameters.h"
7#include "AMP/utils/AMP_MPI.h"
8#include "AMP/vectors/Vector.h"
9
10namespace AMP::LinearAlgebra {
11
15template<typename Config>
17{
18 using gidx_t = typename Config::gidx_t;
19 using lidx_t = typename Config::lidx_t;
20
21public:
23
32 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
33 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
34 const AMP_MPI &comm,
35 std::shared_ptr<GetRowHelper> getRowHelper );
36
46 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
47 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
48 const AMP_MPI &comm,
50 std::shared_ptr<GetRowHelper> getRowHelper );
51
62 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
63 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
64 const AMP_MPI &comm,
65 std::shared_ptr<Variable> varLeft,
66 std::shared_ptr<Variable> varRight,
67 std::shared_ptr<GetRowHelper> getRowHelper );
68
80 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
81 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
82 const AMP_MPI &comm,
83 std::shared_ptr<Variable> varLeft,
84 std::shared_ptr<Variable> varRight,
86 std::shared_ptr<GetRowHelper> getRowHelper );
87
98 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
99 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
100 const AMP_MPI &comm,
101 std::shared_ptr<CommunicationList> commListLeft,
102 std::shared_ptr<CommunicationList> commListRight,
103 std::shared_ptr<GetRowHelper> getRowHelper );
104
116 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
117 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
118 const AMP_MPI &comm,
119 std::shared_ptr<CommunicationList> commListLeft,
120 std::shared_ptr<CommunicationList> commListRight,
122 std::shared_ptr<GetRowHelper> getRowHelper );
123
136 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
137 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
138 const AMP_MPI &comm,
139 std::shared_ptr<Variable> varLeft,
140 std::shared_ptr<Variable> varRight,
141 std::shared_ptr<CommunicationList> commListLeft,
142 std::shared_ptr<CommunicationList> commListRight,
143 std::shared_ptr<GetRowHelper> getRowHelper );
144
158 explicit AMPCSRMatrixParameters( std::shared_ptr<AMP::Discretization::DOFManager> dofLeft,
159 std::shared_ptr<AMP::Discretization::DOFManager> dofRight,
160 const AMP_MPI &comm,
161 std::shared_ptr<Variable> varLeft,
162 std::shared_ptr<Variable> varRight,
163 std::shared_ptr<CommunicationList> commListLeft,
164 std::shared_ptr<CommunicationList> commListRight,
166 std::shared_ptr<GetRowHelper> getRowHelper );
167
168 std::string type() const override { return "AMPCSRMatrixParameters"; }
169
170public: // Write/read restart data
176 void registerChildObjects( AMP::IO::RestartManager *manager ) const override;
177
183 void writeRestart( int64_t fid ) const override;
184
191
192public:
193 const std::shared_ptr<GetRowHelper> d_getRowHelper;
194};
195
196} // namespace AMP::LinearAlgebra
197
198#endif
Provides C++ wrapper around MPI routines.
Definition AMP_MPI.h:63
Class to manage reading/writing restart data.
const std::shared_ptr< GetRowHelper > d_getRowHelper
void registerChildObjects(AMP::IO::RestartManager *manager) const override
Register any child objects.
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, std::shared_ptr< CommunicationList > commListLeft, std::shared_ptr< CommunicationList > commListRight, AMP::Utilities::Backend backend, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, AMP::Utilities::Backend backend, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
std::string type() const override
type of this object
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight, AMP::Utilities::Backend backend, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight, std::shared_ptr< CommunicationList > commListLeft, std::shared_ptr< CommunicationList > commListRight, AMP::Utilities::Backend backend, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
void writeRestart(int64_t fid) const override
Write restart data to file.
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight, std::shared_ptr< CommunicationList > commListLeft, std::shared_ptr< CommunicationList > commListRight, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, std::shared_ptr< CommunicationList > commListLeft, std::shared_ptr< CommunicationList > commListRight, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
AMPCSRMatrixParameters(int64_t fid, AMP::IO::RestartManager *manager)
Read restart data from file.
AMPCSRMatrixParameters(std::shared_ptr< AMP::Discretization::DOFManager > dofLeft, std::shared_ptr< AMP::Discretization::DOFManager > dofRight, const AMP_MPI &comm, std::shared_ptr< GetRowHelper > getRowHelper)
Constructor.
A class used to hold basic parameters for a matrix.
Backend
Enum to store the backend used for gpu acceleration.
Definition Backend.h:21



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:40.
Comments on this page