Epetra_Operator extraction utility functions
[Epetra to Thyra Operator/Vector Adapter Code]

Collaboration diagram for Epetra_Operator extraction utility functions:


Functions

Teuchos::RCP< Epetra_OperatorThyra::get_Epetra_Operator (LinearOpBase< double > &op)
 Get smart pointer to non-const Epetra_Operator object from reference to a non-const EpetraLinearOp accessed through its LinearOpBase interface.
Teuchos::RCP< const Epetra_OperatorThyra::get_Epetra_Operator (const LinearOpBase< double > &op)
 Get smart pointer to const Epetra_Operator object from reference to a const EpetraLinearOp accessed through its LinearOpBase interface.

Detailed Description

These function allow the extraction of an Epetra_Operator from a Thyra::LinearOpBase object.

Function Documentation

Teuchos::RCP< Epetra_Operator > Thyra::get_Epetra_Operator ( LinearOpBase< double > &  op  ) 

Get smart pointer to non-const Epetra_Operator object from reference to a non-const EpetraLinearOp accessed through its LinearOpBase interface.

Parameters:
op [in] Reference to operator to extract Epetra_Operator out of.
Preconditions:

This function is designed to provide an easy way for non-C++ experts to get at the Epetra_Operator object that was stuck into an EpetraLinearOp object.

If the dynamic cast fails then a std::bad_cast exception is thrown containing a very detailed error message as to why the cast failed.

This function is simple enough and developers can see what needs to be done to accomplish this type of access by looking at the source code by clicking on:

Examples:
sillyPowerMethod_epetra.cpp.

Definition at line 34 of file Thyra_get_Epetra_Operator.cpp.

Teuchos::RCP< const Epetra_Operator > Thyra::get_Epetra_Operator ( const LinearOpBase< double > &  op  ) 

Get smart pointer to const Epetra_Operator object from reference to a const EpetraLinearOp accessed through its LinearOpBase interface.

Parameters:
op [in] Reference to operator to extract Epetra_Operator out of.
Preconditions:

This function is designed to provide an easy way for non-C++ experts to get at the Epetra_Operator object that was stuck into an EpetraLinearOp object.

If the dynamic cast fails then a std::bad_cast exception is thrown containing a very detailed error message as to why the cast failed.

This function is simple enough and developers can see what needs to be done to accomplish this type of access by looking at the source code by clicking on:

Definition at line 41 of file Thyra_get_Epetra_Operator.cpp.


Generated on Wed May 12 21:42:57 2010 for Epetra to Thyra Adapter Software by  doxygen 1.4.7