Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_AbstractPreconditionerFactory.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_ABSTRACT_PRECONDITIONER_FACTORY_HPP
11 #define STOKHOS_ABSTRACT_PRECONDITIONER_FACTORY_HPP
12 
13 #include "Teuchos_RCP.hpp"
14 #include "Epetra_Operator.h"
15 
16 namespace Stokhos {
17 
20  public:
21 
24 
27 
31  bool compute_prec = true) = 0;
32 
34  virtual void
36  const Teuchos::RCP<Epetra_Operator>& prec) = 0;
37 
38  }; // class PreconditionerFactory
39 
40 } // namespace Stokhos
41 
42 #endif // STOKHOS_ABSTRACT_PRECONDITIONER_FACTORY_HPP
virtual void recompute(const Teuchos::RCP< Epetra_Operator > &mat, const Teuchos::RCP< Epetra_Operator > &prec)=0
Recompute preconditioner operator for a new matrix.
An abstract class to represent a generic preconditioner factory.
virtual Teuchos::RCP< Epetra_Operator > compute(const Teuchos::RCP< Epetra_Operator > &mat, bool compute_prec=true)=0
Compute preconditioner operator.