| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// Trilinos: An Object-Oriented Solver Framework |
| 4 |
// |
| 5 |
// Copyright 2001-2024 NTESS and the Trilinos contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef STOKHOS_MEAN_BASED_PRECONDITIONER_HPP |
| 11 |
#define STOKHOS_MEAN_BASED_PRECONDITIONER_HPP |
| 12 |
|
| 13 |
#include "MueLuPreconditioner.hpp" |
| 14 |
|
| 15 |
namespace Kokkos { |
| 16 |
namespace Example { |
| 17 |
|
| 18 |
// Default implementation just uses the original matrix |
| 19 |
template<class Scalar, class LO, class GO, class N> |
| 20 |
Teuchos::RCP<Tpetra::Operator<Scalar,LO,GO,N> > |
| 21 |
build_mean_based_muelu_preconditioner( |
| 22 |
const Teuchos::RCP<Tpetra::CrsMatrix<Scalar,LO,GO,N> >& A, |
| 23 |
const Teuchos::RCP<Teuchos::ParameterList>& precParams, |
| 24 |
const Teuchos::RCP<Tpetra::MultiVector<double,LO,GO,N> >& coords) |
| 25 |
{ |
| 26 |
return build_muelu_preconditioner(A, precParams, coords); |
| 27 |
} |
| 28 |
|
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
#endif // STOKHOS_MEAN_BASED_PRECONDITIONER_HPP |