10 #ifndef THYRA_MUELU_REFMAXWELL_PRECONDITIONER_FACTORY_DECL_HPP
11 #define THYRA_MUELU_REFMAXWELL_PRECONDITIONER_FACTORY_DECL_HPP
15 #if defined(HAVE_MUELU_STRATIMIKOS) && defined(HAVE_MUELU_THYRA)
18 #include "Thyra_DefaultPreconditioner.hpp"
19 #include "Thyra_BlockedLinearOpBase.hpp"
20 #include "Thyra_DiagonalLinearOpBase.hpp"
23 #include "Thyra_TpetraLinearOp.hpp"
24 #include "Thyra_TpetraThyraWrappers.hpp"
25 #ifdef HAVE_MUELU_EPETRA
26 #include "Thyra_EpetraLinearOp.hpp"
27 #include "Thyra_EpetraThyraWrappers.hpp"
30 #include "Teuchos_Ptr.hpp"
32 #include "Teuchos_Assert.hpp"
35 #include <Xpetra_CrsMatrixWrap.hpp>
41 #include <MueLu_RefMaxwell.hpp>
42 #include <MueLu_TpetraOperator.hpp>
44 #include <Xpetra_TpetraHalfPrecisionOperator.hpp>
45 #ifdef HAVE_MUELU_EPETRA
50 #include "Thyra_PreconditionerFactoryBase.hpp"
52 #include <Tpetra_KokkosCompat_DefaultNode.hpp>
66 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
67 class MueLuRefMaxwellPreconditionerFactory :
public PreconditionerFactoryBase<Scalar> {
73 MueLuRefMaxwellPreconditionerFactory();
80 bool isCompatible(
const LinearOpSourceBase<Scalar>& fwdOp)
const;
84 void initializePrec(
const Teuchos::RCP<
const LinearOpSourceBase<Scalar> >& fwdOp,
85 PreconditionerBase<Scalar>* prec,
86 const ESupportSolveUse supportSolveUse)
const;
88 void uninitializePrec(PreconditionerBase<Scalar>* prec,
90 ESupportSolveUse* supportSolveUse)
const;
113 std::string description()
const;
125 #endif // #ifdef HAVE_MUELU_STRATIMIKOS
127 #endif // THYRA_MUELU_REFMAXWELL_PRECONDITIONER_FACTORY_DECL_HPP
void getValidParameters(Teuchos::ParameterList ¶ms)