Thyra Version of the Day
Loading...
Searching...
No Matches
Thyra_EpetraTypes.hpp
1// @HEADER
2// *****************************************************************************
3// Thyra: Interfaces and Support for Abstract Numerical Algorithms
4//
5// Copyright 2004 NTESS and the Thyra contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef THYRA_EPETRA_TYPES_HPP
11#define THYRA_EPETRA_TYPES_HPP
12
13#include "Thyra_OperatorVectorTypes.hpp"
14
15// Define this to see selected timers
16//#define EPETRA_THYRA_TEUCHOS_TIMERS
17
18class Epetra_Comm;
19class Epetra_Map;
21class Epetra_Vector;
22class Epetra_Operator;
23
24
25namespace Thyra {
26
27
36
37
42inline
43const std::string toString(const EAdjointEpetraOp adjointEpetraOp)
44{
45 switch(adjointEpetraOp) {
47 return "EPETRA_OP_ADJOINT_SUPPORTED";
49 return "EPETRA_OP_ADJOINT_UNSUPPORTED";
50 default:
52 }
54}
55
56
65
66
71inline
72const std::string toString(const EApplyEpetraOpAs applyEpetraOpAs)
73{
74 switch(applyEpetraOpAs) {
76 return "EPETRA_OP_APPLY_APPLY";
78 return "EPETRA_OP_APPLY_APPLY_INVERSE";
79 default:
81 }
83}
84
85
87class EpetraLinearOp;
88
89
90} // namespace Thyra
91
92#endif // THYRA_EPETRA_TYPES_HPP
93
94#if defined(Thyra_SHOW_DEPRECATED_WARNINGS)
95#ifdef __GNUC__
96#warning "The ThyraEpetraAdapters package is deprecated"
97#endif
98#endif
99
EApplyEpetraOpAs
Determine how the apply an Epetra_Operator as a linear operator.
EAdjointEpetraOp
Determine if adjoints are supported on Epetra_Opeator or not.
@ EPETRA_OP_APPLY_APPLY
Apply using Epetra_Operator::Apply(...)
@ EPETRA_OP_APPLY_APPLY_INVERSE
Apply using Epetra_Operator::ApplyInverse(...)
@ EPETRA_OP_ADJOINT_UNSUPPORTED
Adjoint not supported.
@ EPETRA_OP_ADJOINT_SUPPORTED
Adjoint supported.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
const char * toString(EConj conj)
Return a string name for a EOpTransp value. `*.
#define TEUCHOS_UNREACHABLE_RETURN(dummyReturnVal)