Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
ca9b6d64
Commit
ca9b6d64
authored
Jul 15, 2020
by
Martin Schneider
Committed by
Timo Koch
Sep 30, 2020
Browse files
[wmpfa] Use correct index type for interpolator
parent
7523aa37
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/cellcentered/wmpfa/interpolationoperator.hh
View file @
ca9b6d64
...
...
@@ -40,10 +40,13 @@ class EmptyInterpolator {};
template
<
class
T
,
bool
Enable
>
class
HapInterpolatorBase
{
using
GridGeometry
=
typename
T
::
GridGeometry
;
using
GridView
=
typename
T
::
GridView
;
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
Position
=
typename
T
::
GlobalPosition
;
using
GridIndexType
=
typename
GridGeometry
::
SubControlVolume
::
Traits
::
GridIndexType
;
using
Scalar
=
typename
Position
::
value_type
;
struct
Entry
...
...
@@ -51,7 +54,7 @@ class HapInterpolatorBase
Entry
()
{
entry
=
{
-
1
,
0.0
};}
Entry
(
std
::
size_t
idx
,
Scalar
weight
)
Entry
(
GridIndexType
idx
,
Scalar
weight
)
{
entry
=
{
idx
,
weight
};
}
...
...
@@ -59,11 +62,11 @@ class HapInterpolatorBase
Scalar
weight
()
const
{
return
entry
.
second
;}
std
::
size_t
dofIndex
()
const
GridIndexType
dofIndex
()
const
{
return
entry
.
first
;}
private:
std
::
pair
<
std
::
size_t
,
Scalar
>
entry
;
std
::
pair
<
GridIndexType
,
Scalar
>
entry
;
};
struct
LocalInterpolationData
...
...
@@ -167,12 +170,12 @@ public:
return
distances
;
}
const
LocalInterpolationData
getInterpolationData
(
std
::
size_t
localIdx
)
const
const
LocalInterpolationData
getInterpolationData
(
GridIndexType
localIdx
)
const
{
return
interpolationData_
[
localIdx
];
}
LocalInterpolationData
getInterpolationData
(
std
::
size_t
localIdx
)
LocalInterpolationData
getInterpolationData
(
GridIndexType
localIdx
)
{
return
interpolationData_
[
localIdx
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment