Solvers.hpp 1.61 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <dune/common/version.hh>
#include <dune/istl/solvers.hh>

#if HAVE_SUITESPARSE_UMFPACK
#include <dune/istl/umfpack.hh>
#endif
#if HAVE_SUITESPARSE_LDL
#include <dune/istl/ldl.hh>
#endif
#if HAVE_SUITESPARSE_SPQR
#include <dune/istl/spqr.hh>
#endif
#if HAVE_SUITESPARSE_CHOLMOD && DUNE_VERSION_GTE(DUNE_ISTL,2,7)
#include <dune/istl/cholmod.hh>
#endif
#if HAVE_SUPERLU
#include <dune/istl/superlu.hh>
#endif

#include <amdis/linearalgebra/istl/precompiled/Common.hpp>

namespace Dune
{
  // iterative solver
  extern template class CGSolver<Precompiled::Vector>;
  extern template class GeneralizedPCGSolver<Precompiled::Vector>;
  extern template class BiCGSTABSolver<Precompiled::Vector>;
  extern template class MINRESSolver<Precompiled::Vector>;
  extern template class RestartedGMResSolver<Precompiled::Vector>;

#if DUNE_VERSION_GTE(DUNE_ISTL,2,7)
  extern template class RestartedFCGSolver<Precompiled::Vector>;
  extern template class CompleteFCGSolver<Precompiled::Vector>;
  extern template class RestartedFlexibleGMResSolver<Precompiled::Vector>;
#endif

  // direct solver
#if HAVE_SUITESPARSE_UMFPACK
  extern template class UMFPack<Precompiled::Matrix>;
#endif

#if HAVE_SUITESPARSE_LDL
  extern template class LDL<Precompiled::Matrix>;
#endif

#if HAVE_SUITESPARSE_SPQR
  extern template class SPQR<Precompiled::Matrix>;
#endif

#if HAVE_SUITESPARSE_CHOLMOD && DUNE_VERSION_GTE(DUNE_ISTL,2,7)
  extern template class Cholmod<Precompiled::Vector>;
#endif

#if HAVE_SUPERLU && DUNE_VERSION_LT(DUNE_ISTL,2,7)
  // NOTE: Bug in colcompmatrix.hh
  extern template class SuperLU<Precompiled::Matrix>;
#endif
} // end namespace Dune