47 #ifndef THYRA_MUELU_REFMAXWELL_PRECONDITIONER_FACTORY_DECL_HPP 48 #define THYRA_MUELU_REFMAXWELL_PRECONDITIONER_FACTORY_DECL_HPP 52 #if defined(HAVE_MUELU_STRATIMIKOS) && defined(HAVE_MUELU_THYRA) 55 #include "Thyra_DefaultPreconditioner.hpp" 56 #include "Thyra_BlockedLinearOpBase.hpp" 57 #include "Thyra_DiagonalLinearOpBase.hpp" 60 #ifdef HAVE_MUELU_TPETRA 61 #include "Thyra_TpetraLinearOp.hpp" 62 #include "Thyra_TpetraThyraWrappers.hpp" 64 #ifdef HAVE_MUELU_EPETRA 65 #include "Thyra_EpetraLinearOp.hpp" 66 #include "Thyra_EpetraThyraWrappers.hpp" 69 #include "Teuchos_Ptr.hpp" 70 #include "Teuchos_TestForException.hpp" 71 #include "Teuchos_Assert.hpp" 72 #include "Teuchos_Time.hpp" 74 #include <Xpetra_CrsMatrixWrap.hpp> 75 #include <Xpetra_CrsMatrix.hpp> 76 #include <Xpetra_Matrix.hpp> 77 #include <Xpetra_ThyraUtils.hpp> 80 #include <MueLu_RefMaxwell.hpp> 81 #ifdef HAVE_MUELU_TPETRA 82 #include <MueLu_TpetraOperator.hpp> 83 #include <Xpetra_TpetraOperator.hpp> 84 #include <Xpetra_TpetraHalfPrecisionOperator.hpp> 86 #ifdef HAVE_MUELU_EPETRA 88 #include <Xpetra_EpetraOperator.hpp> 91 #include "Thyra_PreconditionerFactoryBase.hpp" 93 #include "KokkosCompat_DefaultNode.hpp" 107 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node = KokkosClassic::DefaultNode::DefaultNodeType>
108 class MueLuRefMaxwellPreconditionerFactory :
public PreconditionerFactoryBase<Scalar> {
115 MueLuRefMaxwellPreconditionerFactory();
122 bool isCompatible(
const LinearOpSourceBase<Scalar>& fwdOp)
const;
124 Teuchos::RCP<PreconditionerBase<Scalar> > createPrec()
const;
126 void initializePrec(
const Teuchos::RCP<
const LinearOpSourceBase<Scalar> >& fwdOp,
127 PreconditionerBase<Scalar>* prec,
128 const ESupportSolveUse supportSolveUse
131 void uninitializePrec(PreconditionerBase<Scalar>* prec,
132 Teuchos::RCP<
const LinearOpSourceBase<Scalar> >* fwdOp,
133 ESupportSolveUse* supportSolveUse
142 void setParameterList(
const Teuchos::RCP<Teuchos::ParameterList>& paramList);
144 Teuchos::RCP<Teuchos::ParameterList> unsetParameterList();
146 Teuchos::RCP<Teuchos::ParameterList> getNonconstParameterList();
148 Teuchos::RCP<const Teuchos::ParameterList> getParameterList()
const;
157 std::string description()
const;
165 Teuchos::RCP<Teuchos::ParameterList> paramList_;
171 #endif // #ifdef HAVE_MUELU_STRATIMIKOS 173 #endif // THYRA_MUELU_REFMAXWELL_PRECONDITIONER_FACTORY_DECL_HPP
void getValidParameters(Teuchos::ParameterList ¶ms)