Stratimikos Version of the Day
Loading...
Searching...
No Matches
Thyra_IfpackPreconditionerFactory.hpp
1// @HEADER
2// *****************************************************************************
3// Stratimikos: Thyra-based strategies for linear solvers
4//
5// Copyright 2006 NTESS and the Stratimikos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef THYRA_IFPACK_PRECONDITIONER_FACTORY_DECL_HPP
11#define THYRA_IFPACK_PRECONDITIONER_FACTORY_DECL_HPP
12
13#include "Thyra_PreconditionerFactoryBase.hpp"
14#include "Thyra_EpetraOperatorViewExtractorBase.hpp"
15#include "Teuchos_StandardCompositionMacros.hpp"
16#include "Ifpack.h"
17
18namespace Thyra {
19
24class IfpackPreconditionerFactory : public PreconditionerFactoryBase<double> {
25public:
26
29
32
41 STANDARD_COMPOSITION_MEMBERS( EpetraOperatorViewExtractorBase, epetraFwdOpViewExtractor );
42
44
47
49 bool isCompatible( const LinearOpSourceBase<double> &fwdOpSrc ) const;
51 bool applySupportsConj(EConj conj) const;
53 bool applyTransposeSupportsConj(EConj conj) const;
55 Teuchos::RCP<PreconditionerBase<double> > createPrec() const;
57 void initializePrec(
58 const Teuchos::RCP<const LinearOpSourceBase<double> > &fwdOpSrc
59 ,PreconditionerBase<double> *prec
60 ,const ESupportSolveUse supportSolveUse
61 ) const;
64 PreconditionerBase<double> *prec
65 ,Teuchos::RCP<const LinearOpSourceBase<double> > *fwdOpSrc
66 ,ESupportSolveUse *supportSolveUse
67 ) const;
68
70
73
75 void setParameterList(Teuchos::RCP<Teuchos::ParameterList> const& paramList);
77 Teuchos::RCP<Teuchos::ParameterList> getNonconstParameterList();
79 Teuchos::RCP<Teuchos::ParameterList> unsetParameterList();
81 Teuchos::RCP<const Teuchos::ParameterList> getParameterList() const;
83 Teuchos::RCP<const Teuchos::ParameterList> getValidParameters() const;
84
86
89
91 std::string description() const;
92
94
95private:
96
97 // ////////////////////////////////
98 // Private data members
99
100 Teuchos::RCP<Teuchos::ParameterList> paramList_;
101 ::Ifpack::EPrecType precType_;
102 int overlap_;
103
104 // ////////////////////////////////
105 // Private member functions
106
107 static void initializeTimers();
108
109};
110
111} // namespace Thyra
112
113#endif // THYRA_IFPACK_PRECONDITIONER_FACTORY_DECL_HPP
Concrete preconditioner factory subclass based on Ifpack.
STANDARD_COMPOSITION_MEMBERS(EpetraOperatorViewExtractorBase, epetraFwdOpViewExtractor)
Set the strategy object used to extract an Epetra_Operator view of an input forward operator.
Teuchos::RCP< const Teuchos::ParameterList > getParameterList() const
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const &paramList)
void uninitializePrec(PreconditionerBase< double > *prec, Teuchos::RCP< const LinearOpSourceBase< double > > *fwdOpSrc, ESupportSolveUse *supportSolveUse) const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Teuchos::RCP< PreconditionerBase< double > > createPrec() const
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()
bool isCompatible(const LinearOpSourceBase< double > &fwdOpSrc) const
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()
void initializePrec(const Teuchos::RCP< const LinearOpSourceBase< double > > &fwdOpSrc, PreconditionerBase< double > *prec, const ESupportSolveUse supportSolveUse) const

Generated for Stratimikos by doxygen 1.9.8