1#ifndef included_AMP_MatrixParametersBase
2#define included_AMP_MatrixParametersBase
4#include "AMP/utils/AMP_MPI.h"
5#include "AMP/utils/Utilities.h"
6#include "AMP/vectors/Variable.h"
29 d_hash( reinterpret_cast<uint64_t>( this ) )
42 d_hash( reinterpret_cast<uint64_t>( this ) )
52 std::shared_ptr<Variable> varLeft,
53 std::shared_ptr<Variable> varRight )
58 d_hash( reinterpret_cast<uint64_t>( this ) )
69 std::shared_ptr<Variable> varLeft,
70 std::shared_ptr<Variable> varRight,
76 d_hash( reinterpret_cast<uint64_t>( this ) )
87 virtual std::string
type()
const {
return "MatrixParametersBase"; }
Provides C++ wrapper around MPI routines.
Class to manage reading/writing restart data.
A class used to hold basic parameters for a matrix.
AMP::Utilities::Backend d_backend
std::shared_ptr< Variable > d_VariableLeft
AMP::AMP_MPI & getComm()
Get the communicator for the matrix.
virtual void writeRestart(int64_t fid) const
Write restart data to file.
void setRightVariable(std::shared_ptr< Variable > var)
MatrixParametersBase(const AMP_MPI &comm)
Constructor, variable names set to default.
MatrixParametersBase(const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight, AMP::Utilities::Backend backend)
Constructor, variable names provided.
void setLeftVariable(std::shared_ptr< Variable > var)
std::shared_ptr< Variable > getLeftVariable() const
uint64_t getID() const
Get a unique id hash.
std::shared_ptr< Variable > getRightVariable() const
MatrixParametersBase()=delete
MatrixParametersBase(int64_t fid, AMP::IO::RestartManager *manager)
Read restart data from file.
std::shared_ptr< Variable > d_VariableRight
virtual ~MatrixParametersBase()=default
Deconstructor.
MatrixParametersBase(const MatrixParametersBase &other)=default
virtual void registerChildObjects(AMP::IO::RestartManager *manager) const
Register any child objects.
MatrixParametersBase(const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight)
Constructor, variable names provided.
virtual std::string type() const
type of this object
MatrixParametersBase(const AMP_MPI &comm, AMP::Utilities::Backend backend)
Constructor, variable names set to default.
A description of the data in the vector.
Backend
Enum to store the backend used for gpu acceleration.