| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// Belos: Block Linear Solvers Package |
| 4 |
// |
| 5 |
// Copyright 2004-2016 NTESS and the Belos contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef BELOS_TPETRA_ADAPTER_HPP |
| 11 |
#define BELOS_TPETRA_ADAPTER_HPP |
| 12 |
|
| 13 |
/// \file BelosTpetraAdapter.hpp |
| 14 |
/// \brief Partial specialization of Belos::MultiVecTraits and |
| 15 |
/// Belos::OperatorTraits for Tpetra objects. |
| 16 |
/// |
| 17 |
/// \section Belos_TpetraAdapter_sum Summary |
| 18 |
/// |
| 19 |
/// If you want to use Belos solvers with Tpetra objects, include this |
| 20 |
/// header file, along with the header file(s) for the solver(s) you |
| 21 |
/// want to use. "Tpetra objects" means the following: |
| 22 |
/// - Tpetra::MultiVector for the multivector type (MV) |
| 23 |
/// - Tpetra::Operator for the operator type (OP) |
| 24 |
/// |
| 25 |
/// You may use any subclass of Tpetra::Operator here, as long as its |
| 26 |
/// template parameters match those of the Tpetra::MultiVector type. |
| 27 |
/// Many different Trilinos packages implement Tpetra::Operator |
| 28 |
/// subclasses. For example, when solving a linear system Ax=b, you |
| 29 |
/// could use a Tpetra::CrsMatrix or Tpetra::RowMatrix for the matrix |
| 30 |
/// A, and a preconditioner from Ifpack2, Amesos2, or MueLu. |
| 31 |
/// |
| 32 |
/// \section Belos_TpetraAdapter_dev Note to Belos developers |
| 33 |
/// |
| 34 |
/// This partial specialization assumes that the first (Scalar) |
| 35 |
/// template parameter of Belos::MultiVecTraits and |
| 36 |
/// Belos::OperatorTraits matches the first template parameters of |
| 37 |
/// Tpetra::MultiVector and Tpetra::Operator. In terms of Belos |
| 38 |
/// solvers, this means that the specialization assumes that the |
| 39 |
/// result of an inner product has the same type as any entry of the |
| 40 |
/// multivector or matrix. This is true for most Scalar types of |
| 41 |
/// interest, but may not necessarily be true for certain Scalar types |
| 42 |
/// implemented in the Stokhos package, or when implementing |
| 43 |
/// mixed-precision solvers in certain ways. If you don't know what |
| 44 |
/// this means, don't worry about it. If you <i>do</i> know what this |
| 45 |
/// means, you might need to write your own partial specialization of |
| 46 |
/// Belos::MultiVecTraits and Belos::OperatorTraits, for a Scalar type |
| 47 |
/// different than that of the Tpetra::MultiVector or |
| 48 |
/// Tpetra::Operator. |
| 49 |
|
| 50 |
// #include "BelosMultiVecTraits_Tpetra.hpp" |
| 51 |
// #include "BelosOperatorTraits_Tpetra.hpp" |
| 52 |
#include "BelosSolverFactory_Tpetra.hpp" |
| 53 |
|
| 54 |
#endif // BELOS_TPETRA_ADAPTER_HPP |