MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_CreateEpetraPreconditioner.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// MueLu: A package for multigrid based preconditioning
4//
5// Copyright 2012 NTESS and the MueLu contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef MUELU_CREATE_EPETRA_PRECONDITIONER_HPP
11#define MUELU_CREATE_EPETRA_PRECONDITIONER_HPP
12
13#include <Epetra_CrsMatrix.h>
14#include <Epetra_MultiVector.h>
15
16#include <Teuchos_RCP.hpp>
17
18#include <MueLu.hpp>
19
21
24#if defined(HAVE_MUELU_EPETRA)
25namespace MueLu {
26
34Teuchos::RCP<MueLu::EpetraOperator>
35CreateEpetraPreconditioner(const Teuchos::RCP<Epetra_CrsMatrix>& inA,
36 // FIXME: why is it non-const
37 Teuchos::ParameterList& paramListIn);
38
46Teuchos::RCP<MueLu::EpetraOperator>
47CreateEpetraPreconditioner(const Teuchos::RCP<Epetra_CrsMatrix>& A,
48 const std::string& xmlFileName);
49
56Teuchos::RCP<MueLu::EpetraOperator>
57CreateEpetraPreconditioner(const Teuchos::RCP<Epetra_CrsMatrix>& A,
58 const std::string& xmlFileName);
59
60void ReuseEpetraPreconditioner(const Teuchos::RCP<Epetra_CrsMatrix>& inA, MueLu::EpetraOperator& Op);
61
62} // namespace MueLu
63#endif // HAVE_MUELU_SERIAL and HAVE_MUELU_EPETRA
64
65#endif // ifndef MUELU_CREATE_EPETRA_PRECONDITIONER_HPP
Namespace for MueLu classes and methods.
void ReuseEpetraPreconditioner(const Teuchos::RCP< Epetra_CrsMatrix > &inA, MueLu::EpetraOperator &Op)
Teuchos::RCP< MueLu::EpetraOperator > CreateEpetraPreconditioner(const Teuchos::RCP< Epetra_CrsMatrix > &inA, Teuchos::ParameterList &paramListIn)
Helper function to create a MueLu preconditioner that can be used by Epetra.Given a EpetraCrs_Matrix,...