24#ifndef DUMUX_LINEAR_SOLVER_TRAITS_HH
25#define DUMUX_LINEAR_SOLVER_TRAITS_HH
27#include <dune/istl/schwarz.hh>
28#include <dune/istl/novlpschwarz.hh>
29#include <dune/istl/owneroverlapcopy.hh>
30#include <dune/istl/paamg/pinfo.hh>
31#include <dune/istl/preconditioners.hh>
32#include <dune/grid/common/capabilities.hh>
40template<
class Gr
idGeometry, DiscretizationMethod discMethod>
44template<
class Gr
idGeometry>
48template<
class MType,
class VType>
56 template<
class SeqPreconditioner>
61template <
class MType,
class VType>
67 using Comm = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>,
int>;
68 using LinearOperator = Dune::NonoverlappingSchwarzOperator<MType, VType, VType, Comm>;
69 using ScalarProduct = Dune::NonoverlappingSchwarzScalarProduct<VType, Comm>;
72 template<
class SeqPreconditioner>
73 using Preconditioner = Dune::NonoverlappingBlockPreconditioner<Comm, SeqPreconditioner>;
76template <
class MType,
class VType>
82 using Comm = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>,
int>;
83 using LinearOperator = Dune::OverlappingSchwarzOperator<MType, VType, VType, Comm>;
84 using ScalarProduct = Dune::OverlappingSchwarzScalarProduct<VType, Comm>;
87 template<
class SeqPreconditioner>
88 using Preconditioner = Dune::BlockPreconditioner<VType, VType, Comm, SeqPreconditioner>;
92template<
class Gr
idGeometry>
95 using GridView =
typename GridGeometry::GridView;
96 using Grid =
typename GridGeometry::GridView::Traits::Grid;
98 template<
class Matrix,
class Vector>
102 template<
class Matrix,
class Vector>
105 template<
class Matrix,
class Vector>
111template<
class Gr
idGeometry>
116 using Grid =
typename GridGeometry::GridView::Traits::Grid;
117 static constexpr int dofCodim = Grid::dimension;
118 static constexpr bool canCommunicate = Dumux::Detail::canCommunicate<Grid, dofCodim>;
120 template<
class Gr
idView>
122 {
return gridView.overlapSize(0) == 0; }
126template<
class Gr
idGeometry>
131 using Grid =
typename GridGeometry::GridView::Traits::Grid;
132 static constexpr int dofCodim = 0;
133 static constexpr bool canCommunicate = Dumux::Detail::canCommunicate<Grid, dofCodim>;
135 template<
class Gr
idView>
141template<
class Gr
idGeometry>
146template<
class Gr
idGeometry>
dune-grid capabilities compatibility layer
The available discretization methods in Dumux.
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:37
static constexpr bool canCommunicate
Definition: gridcapabilities.hh:63
The implementation is specialized for the different discretizations.
Definition: linearsolvertraits.hh:41
sequential solver traits
Definition: linearsolvertraits.hh:50
MType Matrix
Definition: linearsolvertraits.hh:51
VType Vector
Definition: linearsolvertraits.hh:52
Dune::MatrixAdapter< MType, VType, VType > LinearOperator
Definition: linearsolvertraits.hh:53
SeqPreconditioner Preconditioner
Definition: linearsolvertraits.hh:57
Dune::SeqScalarProduct< VType > ScalarProduct
Definition: linearsolvertraits.hh:54
Definition: linearsolvertraits.hh:63
Dune::NonoverlappingSchwarzOperator< MType, VType, VType, Comm > LinearOperator
Definition: linearsolvertraits.hh:68
MType Matrix
Definition: linearsolvertraits.hh:65
Dune::NonoverlappingBlockPreconditioner< Comm, SeqPreconditioner > Preconditioner
Definition: linearsolvertraits.hh:73
Dune::NonoverlappingSchwarzScalarProduct< VType, Comm > ScalarProduct
Definition: linearsolvertraits.hh:69
VType Vector
Definition: linearsolvertraits.hh:66
Dune::OwnerOverlapCopyCommunication< Dune::bigunsignedint< 96 >, int > Comm
Definition: linearsolvertraits.hh:67
static constexpr bool isNonOverlapping
Definition: linearsolvertraits.hh:70
Definition: linearsolvertraits.hh:78
static constexpr bool isNonOverlapping
Definition: linearsolvertraits.hh:85
Dune::OverlappingSchwarzOperator< MType, VType, VType, Comm > LinearOperator
Definition: linearsolvertraits.hh:83
MType Matrix
Definition: linearsolvertraits.hh:80
Dune::BlockPreconditioner< VType, VType, Comm, SeqPreconditioner > Preconditioner
Definition: linearsolvertraits.hh:88
VType Vector
Definition: linearsolvertraits.hh:81
Dune::OwnerOverlapCopyCommunication< Dune::bigunsignedint< 96 >, int > Comm
Definition: linearsolvertraits.hh:82
Dune::OverlappingSchwarzScalarProduct< VType, Comm > ScalarProduct
Definition: linearsolvertraits.hh:84
Definition: linearsolvertraits.hh:94
typename GridGeometry::GridView::Traits::Grid Grid
Definition: linearsolvertraits.hh:96
typename GridGeometry::GridView GridView
Definition: linearsolvertraits.hh:95
static bool isNonOverlapping(const GridView &gridView)
Definition: linearsolvertraits.hh:121
typename GridGeometry::VertexMapper DofMapper
Definition: linearsolvertraits.hh:115
static bool isNonOverlapping(const GridView &gridView)
Definition: linearsolvertraits.hh:136
typename GridGeometry::ElementMapper DofMapper
Definition: linearsolvertraits.hh:130