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