42 #ifndef THYRA_GET_EPETRA_OPERATOR_HPP 43 #define THYRA_GET_EPETRA_OPERATOR_HPP 45 #include "Thyra_EpetraTypes.hpp" 46 #include "Teuchos_TestForException.hpp" 47 #include "Teuchos_TypeNameTraits.hpp" 78 template<
class Scalar>
79 Teuchos::RCP<Epetra_Operator>
82 TEUCHOS_TEST_FOR_EXCEPTION
83 (
true, std::invalid_argument,
"Thyra::get_Epetra_Operator: This function " 84 "only works if Scalar=double, because for Epetra objects, the only Scalar" 85 " type is double. Instead, Scalar = " <<
86 Teuchos::TypeNameTraits<Scalar>::name () <<
".");
91 Teuchos::RCP<Epetra_Operator>
120 template<
class Scalar>
121 Teuchos::RCP<const Epetra_Operator>
124 TEUCHOS_TEST_FOR_EXCEPTION
125 (
true, std::invalid_argument,
"Thyra::get_Epetra_Operator: This function " 126 "only works if Scalar=double, because for Epetra objects, the only Scalar" 127 " type is double. Instead, Scalar = " <<
128 Teuchos::TypeNameTraits<Scalar>::name () <<
".");
133 Teuchos::RCP<const Epetra_Operator>
139 #endif // THYRA_GET_EPETRA_OPERATOR_HPP Teuchos::RCP< const Epetra_Operator > get_Epetra_Operator(const LinearOpBase< Scalar > &)
Get smart pointer to const Epetra_Operator object from reference to a const EpetraLinearOp accessed t...
Base class for all linear operators.