| 1 |
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 2 |
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception |
| 3 |
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 4 |
// vi: set et ts=4 sw=2 sts=2: |
| 5 |
#ifndef DUNE_ISTL_SOLVERTYPE_HH |
| 6 |
#define DUNE_ISTL_SOLVERTYPE_HH |
| 7 |
|
| 8 |
/** |
| 9 |
* @file |
| 10 |
* @brief Templates characterizing the type of a solver. |
| 11 |
*/ |
| 12 |
namespace Dune |
| 13 |
{ |
| 14 |
template<typename Solver> |
| 15 |
struct IsDirectSolver |
| 16 |
{ |
| 17 |
enum |
| 18 |
{ |
| 19 |
/** |
| 20 |
* @brief Whether this is a direct solver. |
| 21 |
* |
| 22 |
* If Solver is a direct solver, this is true. |
| 23 |
*/ |
| 24 |
value =false |
| 25 |
}; |
| 26 |
}; |
| 27 |
|
| 28 |
template<typename Solver> |
| 29 |
struct StoresColumnCompressed |
| 30 |
{ |
| 31 |
enum |
| 32 |
{ |
| 33 |
/** |
| 34 |
* @brief whether the solver internally uses column compressed storage |
| 35 |
*/ |
| 36 |
value = false |
| 37 |
}; |
| 38 |
}; |
| 39 |
} // end namespace Dune |
| 40 |
#endif |