A class that manages an Tpetra::Vector. More...
#include <TpetraVector.h>
Public Member Functions | |
| std::shared_ptr< Vector > | getManagedVec () |
| std::shared_ptr< const Vector > | getManagedVec () const |
| Tpetra::Vector & | getNativeVec () |
| const Tpetra::Vector & | getNativeVec () const |
| Tpetra::Vector & | getTpetra_Vector () |
| Obtain Tpetra::Vector for use in Trilinos routines. | |
| const Tpetra::Vector & | getTpetra_Vector () const |
| Obtain Tpetra::Vector for use in Trilinos routines. | |
| ~TpetraVector () | |
| Destructor. | |
Static Public Member Functions | |
| static std::shared_ptr< const TpetraVector > | constView (Vector::const_shared_ptr vec) |
| Obtain a view of a vector with an Tpetra::Vector wrapper. | |
| static std::shared_ptr< TpetraVector > | view (Vector::shared_ptr vec) |
| Obtain a view of a vector with an Tpetra::Vector wrapper. | |
Private Member Functions | |
| TpetraVector ()=delete | |
| TpetraVector (std::shared_ptr< Vector >) | |
Private Attributes | |
| std::shared_ptr< Vector > | d_AMP |
| std::shared_ptr< Tpetra::Vector<> > | d_tpetra |
A class that manages an Tpetra::Vector.
An TpetraVector presents an Tpetra::Vector class. Given an AMP::LinearAlgebra::Vector, this class can create an Tpetra view without copying the data. As such, this class serves three purposes:
Definition at line 30 of file TpetraVector.h.
| AMP::LinearAlgebra::TpetraVector::~TpetraVector | ( | ) |
Destructor.
|
privatedelete |
|
explicitprivate |
|
static |
Obtain a view of a vector with an Tpetra::Vector wrapper.
| [in] | vec | The vector to get an Tpetra::Vector view of. |
If the vector has an Tpetra::Vector wrapper already created, it is returned. Otherwise, it will try to create an Tpetra::Vector wrapper around the Vector. If it fails, an exception is thrown.
|
inline |
Definition at line 110 of file TpetraVector.h.
References d_AMP.
|
inline |
Definition at line 111 of file TpetraVector.h.
References d_AMP.
|
inline |
Definition at line 108 of file TpetraVector.h.
References d_tpetra.
|
inline |
Definition at line 109 of file TpetraVector.h.
References d_tpetra.
|
inline |
Obtain Tpetra::Vector for use in Trilinos routines.
This function is used to get a Tpetra vector. The following idiom should be used since it fails gracefully. In this function, a view may be created before the Vec is extracted
Definition at line 57 of file TpetraVector.h.
References d_tpetra.
|
inline |
Obtain Tpetra::Vector for use in Trilinos routines.
This function is used to get a Tpetra vector. The following idiom should be used since it fails gracefully. In this function, a view may be created before the Tpetra::Vector is extracted
Definition at line 79 of file TpetraVector.h.
References d_tpetra.
|
static |
Obtain a view of a vector with an Tpetra::Vector wrapper.
| [in] | vec | The vector to get an Tpetra::Vector view of. |
If the vector has an Tpetra::Vector wrapper already created, it is returned. Otherwise, it will try to create an Tpetra::Vector wrapper around the Vector. If it fails, an exception is thrown.
|
private |
Definition at line 119 of file TpetraVector.h.
Referenced by getManagedVec(), and getManagedVec().
|
private |
Definition at line 118 of file TpetraVector.h.
Referenced by getNativeVec(), getNativeVec(), getTpetra_Vector(), and getTpetra_Vector().
|
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 |