Advanced Multi-Physics (AMP)
On-Line Documentation
TrilinosLinearOP.h
Go to the documentation of this file.
1#ifndef included_AMP_TrilinosLinearOP
2#define included_AMP_TrilinosLinearOP
3
4// AMP includes
5#include "AMP/operators/LinearOperator.h"
6#include "AMP/solvers/SolverStrategy.h"
7#include "AMP/vectors/Vector.h"
8
9// Trilinos includes
11#include "Thyra_LinearOpBase_def.hpp"
13
14
15namespace AMP::Solver {
16
17
22class TrilinosLinearOP : public Thyra::LinearOpBase<double>
23{
24public:
27
30
33
34 // Functions inherited from Thyra::LinearOpBase
37 virtual bool opSupportedImpl( Thyra::EOpTransp ) const;
38 virtual void applyImpl( const Thyra::EOpTransp M_trans,
39 const Thyra::MultiVectorBase<double> &X,
40 const Teuchos::Ptr<Thyra::MultiVectorBase<double>> &Y,
41 const double alpha,
42 const double beta ) const;
43
44private:
47
49 std::shared_ptr<AMP::Operator::Operator> d_operator;
50 std::shared_ptr<AMP::Solver::SolverStrategy> d_solver;
51};
52} // namespace AMP::Solver
53
54#endif
#define X(C)
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29
std::shared_ptr< AMP::Solver::SolverStrategy > shared_ptr
virtual ~TrilinosLinearOP()
Destructor.
std::shared_ptr< AMP::Operator::Operator > d_operator
Data variables.
std::shared_ptr< AMP::Solver::SolverStrategy > d_solver
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< double > > range() const
TrilinosLinearOP(AMP::Solver::SolverStrategy::shared_ptr)
Constructor that wraps and AMP::Solver.
TrilinosLinearOP()
Empty constructor.
virtual bool opSupportedImpl(Thyra::EOpTransp) const
TrilinosLinearOP(AMP::Operator::Operator::shared_ptr)
Constructor that wraps and AMP::Operator.
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< double > > domain() const
virtual void applyImpl(const Thyra::EOpTransp M_trans, const Thyra::MultiVectorBase< double > &X, const Teuchos::Ptr< Thyra::MultiVectorBase< double > > &Y, const double alpha, const double beta) const
#define DISABLE_WARNINGS
Re-enable warnings.
#define ENABLE_WARNINGS
Suppress all warnings.



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