Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
206047ad
Commit
206047ad
authored
3 years ago
by
Ivan Buntic
Committed by
Timo Koch
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[disc][linear] Use discretization tag instead of enum as template argument.
parent
8da46c5f
No related branches found
No related tags found
1 merge request
!2844
Feature/discretization tags introduction
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/linear/linearsolvertraits.hh
+9
-9
9 additions, 9 deletions
dumux/linear/linearsolvertraits.hh
test/linear/test_linearsolver.cc
+2
-1
2 additions, 1 deletion
test/linear/test_linearsolver.cc
with
11 additions
and
10 deletions
dumux/linear/linearsolvertraits.hh
+
9
−
9
View file @
206047ad
...
...
@@ -37,12 +37,12 @@
namespace
Dumux
{
//! The implementation is specialized for the different discretizations
template
<
class
GridGeometry
,
DiscretizationMethod
discMethod
>
template
<
class
GridGeometry
,
class
DiscretizationMethod
>
struct
LinearSolverTraitsImpl
;
//! The type traits required for using the IstlFactoryBackend
template
<
class
GridGeometry
>
using
LinearSolverTraits
=
LinearSolverTraitsImpl
<
GridGeometry
,
GridGeometry
::
d
iscMethod
>
;
using
LinearSolverTraits
=
LinearSolverTraitsImpl
<
GridGeometry
,
typename
GridGeometry
::
D
isc
retization
Method
>
;
//! sequential solver traits
template
<
class
MType
,
class
VType
>
...
...
@@ -109,7 +109,7 @@ struct LinearSolverTraitsBase
//! Box: use overlapping or non-overlapping model depending on the grid
template
<
class
GridGeometry
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
::
b
ox
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
s
::
B
ox
>
:
public
LinearSolverTraitsBase
<
GridGeometry
>
{
using
DofMapper
=
typename
GridGeometry
::
VertexMapper
;
...
...
@@ -124,7 +124,7 @@ struct LinearSolverTraitsImpl<GridGeometry, DiscretizationMethod::box>
//! Cell-centered tpfa: use overlapping model
template
<
class
GridGeometry
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
::
cct
pfa
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
s
::
CCT
pfa
>
:
public
LinearSolverTraitsBase
<
GridGeometry
>
{
using
DofMapper
=
typename
GridGeometry
::
ElementMapper
;
...
...
@@ -139,7 +139,7 @@ struct LinearSolverTraitsImpl<GridGeometry, DiscretizationMethod::cctpfa>
//! Face-centered staggered: use overlapping model
template
<
class
GridGeometry
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
::
fcs
taggered
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
s
::
FCS
taggered
>
:
public
LinearSolverTraitsBase
<
GridGeometry
>
{
class
DofMapper
...
...
@@ -180,13 +180,13 @@ struct LinearSolverTraitsImpl<GridGeometry, DiscretizationMethod::fcstaggered>
//! Cell-centered mpfa: use overlapping model
template
<
class
GridGeometry
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
::
ccm
pfa
>
:
public
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
::
cct
pfa
>
{};
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
s
::
CCM
pfa
>
:
public
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
s
::
CCT
pfa
>
{};
//! staggered: use overlapping model
template
<
class
GridGeometry
>
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
::
s
taggered
>
:
public
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
::
cct
pfa
>
{};
struct
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
s
::
S
taggered
>
:
public
LinearSolverTraitsImpl
<
GridGeometry
,
DiscretizationMethod
s
::
CCT
pfa
>
{};
}
// end namespace Dumux
...
...
This diff is collapsed.
Click to expand it.
test/linear/test_linearsolver.cc
+
2
−
1
View file @
206047ad
...
...
@@ -31,7 +31,8 @@ struct MockGridGeometry
using
GridView
=
Dune
::
YaspGrid
<
2
>::
LeafGridView
;
using
DofMapper
=
Dune
::
MultipleCodimMultipleGeomTypeMapper
<
GridView
>
;
using
VertexMapper
=
Dune
::
MultipleCodimMultipleGeomTypeMapper
<
GridView
>
;
static
constexpr
auto
discMethod
=
DiscretizationMethod
::
box
;
using
DiscretizationMethod
=
DiscretizationMethods
::
Box
;
static
constexpr
DiscretizationMethod
discMethod
{};
};
template
<
class
M
,
class
X
,
class
V
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment