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

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

Functions

Teuchos::RefCountPtr< 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::RefCountPtr< 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.

Detailed Description

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


Function Documentation

Teuchos::RefCountPtr< 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:
  • dynamic_cast<EpetraLinearOp*>(&op) != NULL

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.

Teuchos::RefCountPtr< 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:
  • dynamic_cast<const EpetraLinearOp*>(&op) != NULL

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:


Generated on Sun May 20 13:06:11 2007 for Epetra to Thyra Adapter Software by doxygen 1.3.9.1