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
5e696ee1
Commit
5e696ee1
authored
Feb 26, 2021
by
Kilian Weishaupt
Browse files
[pnm][gridgeometry] Use std::array instead of std::vector
parent
0685249c
Changes
3
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/porenetwork/fvelementgeometry.hh
View file @
5e696ee1
...
...
@@ -295,7 +295,7 @@ private:
std
::
move
(
unitOuterNormal
),
gridGeometry
().
throatCrossSectionalArea
(
gridGeometry
().
elementMapper
().
index
(
element
)),
scvfLocalIdx
++
,
std
::
vector
<
LocalIndexType
>
({
0
,
1
}));
std
::
array
<
LocalIndexType
,
2
>
({
0
,
1
}));
}
//! The bound element
...
...
dumux/discretization/porenetwork/gridgeometry.hh
View file @
5e696ee1
...
...
@@ -618,7 +618,7 @@ public:
std
::
move
(
unitOuterNormal
),
this
->
throatCrossSectionalArea
(
this
->
elementMapper
().
index
(
element
)),
scvfLocalIdx
++
,
std
::
vector
<
LocalIndexType
>
({
0
,
1
}));
std
::
array
<
LocalIndexType
,
2
>
({
0
,
1
}));
}
}
...
...
dumux/discretization/porenetwork/subcontrolvolumeface.hh
View file @
5e696ee1
...
...
@@ -80,12 +80,12 @@ public:
const
GlobalPosition
&
unitOuterNormal
,
const
Scalar
&
area
,
GridIndexType
scvfIndex
,
std
::
vector
<
LocalIndexType
>&&
scvIndices
)
std
::
array
<
LocalIndexType
,
2
>&&
scvIndices
)
:
center_
(
center
),
unitOuterNormal_
(
unitOuterNormal
),
area_
(
area
),
scvfIndex_
(
scvfIndex
),
scvIndices_
(
{
scvIndices
[
0
],
scvIndices
[
1
]}
)
scvIndices_
(
std
::
move
(
scvIndices
)
)
{}
//! The center of the sub control volume face
...
...
Write
Preview
Supports
Markdown
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