Wrapper for an AMP vector in Thyra. More...
#include <ThyraVectorWrapper.h>
Inherits Thyra::VectorDefaultBase< double >.
Public Member Functions | |
| virtual Teuchos::RCP< Thyra::MultiVectorBase< double > > | clone_mv () const override |
| virtual Teuchos::RCP< Thyra::VectorBase< double > > | clone_v () const override |
| virtual Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | domain () const override |
| std::shared_ptr< const AMP::Discretization::DOFManager > | getDOFManager () const |
| Get the DOF Manager for the vector (all vectors must share compatible DOFManagers) | |
| Vector::shared_ptr | getVec (int i) |
| Get the underlying AMP vector. | |
| Vector::const_shared_ptr | getVec (int i) const |
| Get the underlying AMP vector. | |
| size_t | numColumns () const |
| Get the number of columns. | |
| size_t | numRows () const |
| Get the number of rows. | |
| size_t | numVecs () const |
| Get the number of duplicate vectors stored. | |
| ThyraVectorWrapper & | operator= (const ThyraVectorWrapper &)=delete |
| Assignment operator. | |
| virtual Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | range () const override |
| virtual Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | space () const override |
| ThyraVectorWrapper (const std::vector< AMP::LinearAlgebra::Vector::shared_ptr > &vecs) | |
| ThyraVectorWrapper (const ThyraVectorWrapper &)=delete | |
| Copy constructor. | |
| virtual | ~ThyraVectorWrapper () |
| Destructor. | |
Protected Member Functions | |
| virtual void | acquireDetachedMultiVectorViewImpl (const Teuchos::Range1D &rowRng, const Teuchos::Range1D &colRng, RTOpPack::ConstSubMultiVectorView< double > *sub_mv) const override |
| virtual void | acquireDetachedVectorViewImpl (const Teuchos::Range1D &rng, RTOpPack::ConstSubVectorView< double > *sub_vec) const override |
| virtual void | acquireNonconstDetachedMultiVectorViewImpl (const Teuchos::Range1D &rowRng, const Teuchos::Range1D &colRng, RTOpPack::SubMultiVectorView< double > *sub_mv) override |
| virtual void | acquireNonconstDetachedVectorViewImpl (const Teuchos::Range1D &rng, RTOpPack::SubVectorView< double > *sub_vec) override |
| 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 override |
| virtual void | applyOpImpl (const RTOpPack::RTOpT< double > &op, const Teuchos::ArrayView< const Teuchos::Ptr< const Thyra::VectorBase< double > > > &vecs, const Teuchos::ArrayView< const Teuchos::Ptr< Thyra::VectorBase< double > > > &targ_vecs, const Teuchos::Ptr< RTOpPack::ReductTarget > &reduct_obj, const Teuchos::Ordinal global_offset) const override |
| void | assignImpl (double alpha) override |
| virtual void | commitNonconstDetachedMultiVectorViewImpl (RTOpPack::SubMultiVectorView< double > *sub_mv) override |
| virtual void | commitNonconstDetachedVectorViewImpl (RTOpPack::SubVectorView< double > *sub_vec) override |
| virtual Teuchos::RCP< const Thyra::MultiVectorBase< double > > | contigSubViewImpl (const Teuchos::Range1D &colRng) const override |
| void | initialize (const std::vector< AMP::LinearAlgebra::Vector::shared_ptr > &vecs, const std::vector< size_t > &cols, size_t N_cols) |
| virtual void | mvMultiReductApplyOpImpl (const RTOpPack::RTOpT< double > &primary_op, const Teuchos::ArrayView< const Teuchos::Ptr< const Thyra::MultiVectorBase< double > > > &multi_vecs, const Teuchos::ArrayView< const Teuchos::Ptr< Thyra::MultiVectorBase< double > > > &targ_multi_vecs, const Teuchos::ArrayView< const Teuchos::Ptr< RTOpPack::ReductTarget > > &reduct_objs, const Teuchos::Ordinal primary_global_offset) const override |
| virtual void | mvSingleReductApplyOpImpl (const RTOpPack::RTOpT< double > &primary_op, const RTOpPack::RTOpT< double > &secondary_op, const Teuchos::ArrayView< const Teuchos::Ptr< const Thyra::MultiVectorBase< double > > > &multi_vecs, const Teuchos::ArrayView< const Teuchos::Ptr< Thyra::MultiVectorBase< double > > > &targ_multi_vecs, const Teuchos::Ptr< RTOpPack::ReductTarget > &reduct_obj, const Teuchos::Ordinal primary_global_offset) const override |
| virtual Teuchos::RCP< Thyra::VectorBase< double > > | nonconstColImpl (Teuchos::Ordinal j) override |
| virtual Teuchos::RCP< Thyra::MultiVectorBase< double > > | nonconstContigSubViewImpl (const Teuchos::Range1D &colRng) override |
| virtual Teuchos::RCP< Thyra::MultiVectorBase< double > > | nonconstNonContigSubViewImpl (const Teuchos::ArrayView< const int > &cols) override |
| virtual Teuchos::RCP< const Thyra::MultiVectorBase< double > > | nonContigSubViewImpl (const Teuchos::ArrayView< const int > &cols) const override |
| virtual bool | opSupportedImpl (Thyra::EOpTransp M_trans) const override |
| virtual void | releaseDetachedMultiVectorViewImpl (RTOpPack::ConstSubMultiVectorView< double > *sub_mv) const override |
| virtual void | releaseDetachedVectorViewImpl (RTOpPack::ConstSubVectorView< double > *sub_vec) const override |
| virtual void | setSubVectorImpl (const RTOpPack::SparseSubVectorT< double > &sub_vec) override |
| ThyraVectorWrapper (const std::vector< AMP::LinearAlgebra::Vector::shared_ptr > &vecs, const std::vector< size_t > &cols, size_t N_cols) | |
Protected Attributes | |
| std::vector< size_t > | d_cols |
| size_t | d_N_cols = 0 |
| std::vector< AMP::LinearAlgebra::Vector::shared_ptr > | d_vecs |
Private Member Functions | |
| std::shared_ptr< const ThyraVectorWrapper > | shared_from_this () const |
| ThyraVectorWrapper ()=default | |
Private Attributes | |
| Teuchos::Comm< RTOpPack::index_type > * | d_comm = nullptr |
Friends | |
| class | ThyraVector |
Wrapper for an AMP vector in Thyra.
This allows us to safely wrap an AMP vector in a thyra vector for use within Trilinos.
Definition at line 24 of file ThyraVectorWrapper.h.
|
explicit |
|
virtual |
Destructor.
|
delete |
Copy constructor.
|
explicitprotected |
|
privatedefault |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotected |
|
overridevirtual |
|
overridevirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overridevirtual |
|
inline |
Get the DOF Manager for the vector (all vectors must share compatible DOFManagers)
Definition at line 55 of file ThyraVectorWrapper.h.
References d_vecs.
|
inline |
Get the underlying AMP vector.
Definition at line 40 of file ThyraVectorWrapper.h.
References d_vecs.
|
inline |
Get the underlying AMP vector.
Definition at line 43 of file ThyraVectorWrapper.h.
References d_vecs.
|
protected |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| size_t AMP::LinearAlgebra::ThyraVectorWrapper::numColumns | ( | ) | const |
Get the number of columns.
| size_t AMP::LinearAlgebra::ThyraVectorWrapper::numRows | ( | ) | const |
Get the number of rows.
|
inline |
Get the number of duplicate vectors stored.
Definition at line 46 of file ThyraVectorWrapper.h.
References d_vecs.
|
delete |
Assignment operator.
|
overrideprotectedvirtual |
|
overridevirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
private |
|
overridevirtual |
|
friend |
Definition at line 164 of file ThyraVectorWrapper.h.
|
protected |
Definition at line 151 of file ThyraVectorWrapper.h.
|
private |
Definition at line 159 of file ThyraVectorWrapper.h.
|
protected |
Definition at line 152 of file ThyraVectorWrapper.h.
|
protected |
Definition at line 150 of file ThyraVectorWrapper.h.
Referenced by getDOFManager(), getVec(), getVec(), and numVecs().
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:43. Comments on this page |