Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_PreconditionerFactory.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_PRECONDITIONER_FACTORY_HPP
11 #define STOKHOS_PRECONDITIONER_FACTORY_HPP
12 
13 #include "Teuchos_RCP.hpp"
15 #include "Epetra_Operator.h"
17 
18 namespace Stokhos {
19 
22  public:
23 
26  const std::string& prec_name,
28 
31 
35  bool compute_prec = true);
36 
38  virtual void
40  const Teuchos::RCP<Epetra_Operator>& prec);
41 
42  protected:
43 
46 
47  }; // class PreconditionerFactory
48 
49 } // namespace Stokhos
50 
51 #endif // STOKHOS_PRECONDITIONER_FACTORY_HPP
virtual Teuchos::RCP< Epetra_Operator > compute(const Teuchos::RCP< Epetra_Operator > &mat, bool compute_prec=true)
Compute preconditioner operator.
An abstract class to represent a generic preconditioner factory.
An class for building preconditioners.
virtual void recompute(const Teuchos::RCP< Epetra_Operator > &mat, const Teuchos::RCP< Epetra_Operator > &prec)
Recompute preconditioner operator for a new matrix.
PreconditionerFactory(const std::string &prec_name, const Teuchos::RCP< Teuchos::ParameterList > &params)
Constructor.
Teuchos::RCP< Stokhos::AbstractPreconditionerFactory > factory
Preconditioner factory.