Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
epetra
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
19
class
AbstractPreconditionerFactory
{
20
public
:
21
23
AbstractPreconditionerFactory
() {}
24
26
virtual
~AbstractPreconditionerFactory
() {}
27
29
virtual
Teuchos::RCP<Epetra_Operator>
30
compute
(
const
Teuchos::RCP<Epetra_Operator>
& mat,
31
bool
compute_prec =
true
) = 0;
32
34
virtual
void
35
recompute
(
const
Teuchos::RCP<Epetra_Operator>
& mat,
36
const
Teuchos::RCP<Epetra_Operator>
& prec) = 0;
37
38
};
// class PreconditionerFactory
39
40
}
// namespace Stokhos
41
42
#endif // STOKHOS_ABSTRACT_PRECONDITIONER_FACTORY_HPP
Stokhos::AbstractPreconditionerFactory::~AbstractPreconditionerFactory
virtual ~AbstractPreconditionerFactory()
Destructor.
Definition:
Stokhos_AbstractPreconditionerFactory.hpp:26
Stokhos::AbstractPreconditionerFactory::recompute
virtual void recompute(const Teuchos::RCP< Epetra_Operator > &mat, const Teuchos::RCP< Epetra_Operator > &prec)=0
Recompute preconditioner operator for a new matrix.
Stokhos::AbstractPreconditionerFactory
An abstract class to represent a generic preconditioner factory.
Definition:
Stokhos_AbstractPreconditionerFactory.hpp:19
Stokhos::AbstractPreconditionerFactory::compute
virtual Teuchos::RCP< Epetra_Operator > compute(const Teuchos::RCP< Epetra_Operator > &mat, bool compute_prec=true)=0
Compute preconditioner operator.
Stokhos::AbstractPreconditionerFactory::AbstractPreconditionerFactory
AbstractPreconditionerFactory()
Constructor.
Definition:
Stokhos_AbstractPreconditionerFactory.hpp:23
Epetra_Operator.h
Teuchos::RCP< Epetra_Operator >
Teuchos_RCP.hpp
Generated on Fri Nov 22 2024 09:18:10 for Stokhos Package Browser (Single Doxygen Collection) by
1.8.5