|
Teko Version of the Day
|
Implements the Epetra_Operator interface with a Thyra LinearOperator. This enables the use of absrtact Thyra operators in AztecOO as preconditioners and operators, without being rendered into concrete Epetra matrices. This is my own modified version that was originally in Thyra. More...
#include <Teko_EpetraOperatorWrapper.hpp>

Public Member Functions | |
| EpetraOperatorWrapper (const RCP< const Thyra::LinearOpBase< double > > &thyraOp) | |
| virtual | ~EpetraOperatorWrapper () |
| int | SetUseTranspose (bool UseTranspose) |
| int | Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| int | ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| double | NormInf () const |
| const char * | Label () const |
| bool | UseTranspose () const |
| bool | HasNormInf () const |
| const Epetra_Comm & | Comm () const |
| const Epetra_Map & | OperatorDomainMap () const |
| const Epetra_Map & | OperatorRangeMap () const |
| const RCP< const Thyra::LinearOpBase< double > > | getThyraOp () const |
| Return the thyra operator associated with this wrapper. | |
| const RCP< const MappingStrategy > | getMapStrategy () const |
| Get the mapping strategy for this wrapper (translate between Thyra and Epetra) | |
| virtual int | GetBlockRowCount () |
| Get the number of block rows in this operator. | |
| virtual int | GetBlockColCount () |
| Get the number of block columns in this operator. | |
Protected Member Functions | |
| EpetraOperatorWrapper () | |
| RCP< const Epetra_Comm > | getEpetraComm (const Thyra::LinearOpBase< double > &inOp) const |
| void | SetOperator (const RCP< const Thyra::LinearOpBase< double > > &thyraOp, bool buildMap=true) |
| void | SetMapStrategy (const RCP< const MappingStrategy > &mapStrategy) |
Protected Attributes | |
| RCP< const MappingStrategy > | mapStrategy_ |
| RCP< const Thyra::LinearOpBase < double > > | thyraOp_ |
| bool | useTranspose_ |
| RCP< const Epetra_Comm > | comm_ |
| std::string | label_ |
Implements the Epetra_Operator interface with a Thyra LinearOperator. This enables the use of absrtact Thyra operators in AztecOO as preconditioners and operators, without being rendered into concrete Epetra matrices. This is my own modified version that was originally in Thyra.
Definition at line 206 of file Teko_EpetraOperatorWrapper.hpp.
| Teko::Epetra::EpetraOperatorWrapper::EpetraOperatorWrapper | ( | const RCP< const Thyra::LinearOpBase< double > > & | thyraOp | ) |
Definition at line 108 of file Teko_EpetraOperatorWrapper.cpp.
| virtual Teko::Epetra::EpetraOperatorWrapper::~EpetraOperatorWrapper | ( | ) | [inline, virtual] |
Definition at line 216 of file Teko_EpetraOperatorWrapper.hpp.
| Teko::Epetra::EpetraOperatorWrapper::EpetraOperatorWrapper | ( | ) | [protected] |
Definition at line 99 of file Teko_EpetraOperatorWrapper.cpp.
| int Teko::Epetra::EpetraOperatorWrapper::SetUseTranspose | ( | bool | UseTranspose | ) | [inline] |
Reimplemented in Teko::Epetra::BlockedEpetraOperator.
Definition at line 219 of file Teko_EpetraOperatorWrapper.hpp.
| int Teko::Epetra::EpetraOperatorWrapper::Apply | ( | const Epetra_MultiVector & | X, |
| Epetra_MultiVector & | Y | ||
| ) | const |
Definition at line 145 of file Teko_EpetraOperatorWrapper.cpp.
| int Teko::Epetra::EpetraOperatorWrapper::ApplyInverse | ( | const Epetra_MultiVector & | X, |
| Epetra_MultiVector & | Y | ||
| ) | const |
Reimplemented in Teko::Epetra::BlockedEpetraOperator.
Definition at line 178 of file Teko_EpetraOperatorWrapper.cpp.
| double Teko::Epetra::EpetraOperatorWrapper::NormInf | ( | ) | const |
Reimplemented in Teko::Epetra::BlockedEpetraOperator.
Definition at line 138 of file Teko_EpetraOperatorWrapper.cpp.
| const char* Teko::Epetra::EpetraOperatorWrapper::Label | ( | ) | const [inline] |
Definition at line 231 of file Teko_EpetraOperatorWrapper.hpp.
| bool Teko::Epetra::EpetraOperatorWrapper::UseTranspose | ( | ) | const [inline] |
Reimplemented in Teko::Epetra::BlockedEpetraOperator.
Definition at line 234 of file Teko_EpetraOperatorWrapper.hpp.
| bool Teko::Epetra::EpetraOperatorWrapper::HasNormInf | ( | ) | const [inline] |
Reimplemented in Teko::Epetra::BlockedEpetraOperator.
Definition at line 237 of file Teko_EpetraOperatorWrapper.hpp.
| const Epetra_Comm& Teko::Epetra::EpetraOperatorWrapper::Comm | ( | ) | const [inline] |
Reimplemented in Teko::Epetra::BlockedEpetraOperator.
Definition at line 240 of file Teko_EpetraOperatorWrapper.hpp.
| const Epetra_Map& Teko::Epetra::EpetraOperatorWrapper::OperatorDomainMap | ( | ) | const [inline] |
Definition at line 243 of file Teko_EpetraOperatorWrapper.hpp.
| const Epetra_Map& Teko::Epetra::EpetraOperatorWrapper::OperatorRangeMap | ( | ) | const [inline] |
Definition at line 246 of file Teko_EpetraOperatorWrapper.hpp.
| const RCP<const Thyra::LinearOpBase<double> > Teko::Epetra::EpetraOperatorWrapper::getThyraOp | ( | ) | const [inline] |
Return the thyra operator associated with this wrapper.
Definition at line 249 of file Teko_EpetraOperatorWrapper.hpp.
| const RCP<const MappingStrategy> Teko::Epetra::EpetraOperatorWrapper::getMapStrategy | ( | ) | const [inline] |
Get the mapping strategy for this wrapper (translate between Thyra and Epetra)
Definition at line 253 of file Teko_EpetraOperatorWrapper.hpp.
| int Teko::Epetra::EpetraOperatorWrapper::GetBlockRowCount | ( | ) | [virtual] |
Get the number of block rows in this operator.
Definition at line 279 of file Teko_EpetraOperatorWrapper.cpp.
| int Teko::Epetra::EpetraOperatorWrapper::GetBlockColCount | ( | ) | [virtual] |
Get the number of block columns in this operator.
Definition at line 287 of file Teko_EpetraOperatorWrapper.cpp.
| RCP< const Epetra_Comm > Teko::Epetra::EpetraOperatorWrapper::getEpetraComm | ( | const Thyra::LinearOpBase< double > & | inOp | ) | const [protected] |
Definition at line 188 of file Teko_EpetraOperatorWrapper.cpp.
| void Teko::Epetra::EpetraOperatorWrapper::SetOperator | ( | const RCP< const Thyra::LinearOpBase< double > > & | thyraOp, |
| bool | buildMap = true |
||
| ) | [protected] |
Definition at line 128 of file Teko_EpetraOperatorWrapper.cpp.
| void Teko::Epetra::EpetraOperatorWrapper::SetMapStrategy | ( | const RCP< const MappingStrategy > & | mapStrategy | ) | [inline, protected] |
Definition at line 273 of file Teko_EpetraOperatorWrapper.hpp.
RCP<const MappingStrategy> Teko::Epetra::EpetraOperatorWrapper::mapStrategy_ [protected] |
Definition at line 277 of file Teko_EpetraOperatorWrapper.hpp.
RCP<const Thyra::LinearOpBase<double> > Teko::Epetra::EpetraOperatorWrapper::thyraOp_ [protected] |
Definition at line 280 of file Teko_EpetraOperatorWrapper.hpp.
bool Teko::Epetra::EpetraOperatorWrapper::useTranspose_ [protected] |
Definition at line 283 of file Teko_EpetraOperatorWrapper.hpp.
RCP<const Epetra_Comm> Teko::Epetra::EpetraOperatorWrapper::comm_ [protected] |
Definition at line 286 of file Teko_EpetraOperatorWrapper.hpp.
std::string Teko::Epetra::EpetraOperatorWrapper::label_ [protected] |
Reimplemented in Teko::Epetra::BlockedEpetraOperator.
Definition at line 289 of file Teko_EpetraOperatorWrapper.hpp.
1.7.4