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
7523aa37
Commit
7523aa37
authored
Jul 15, 2020
by
Martin Schneider
Committed by
Timo Koch
Sep 30, 2020
Browse files
[wmpfa] Always make the flip index set
parent
1b03b307
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/cellcentered/wmpfa/fvgridgeometry.hh
View file @
7523aa37
...
...
@@ -239,21 +239,18 @@ public:
scvfIndicesOfScv_
[
eIdx
]
=
scvfsIndexSet
;
}
// Make the flip index set for network, surface, and periodic grids
if
(
this
->
isPeriodic
())
// Make the flip index set
flipScvfIndices_
.
resize
(
scvfs_
.
size
());
for
(
auto
&&
scvf
:
scvfs_
)
{
flipScvfIndices_
.
resize
(
scvfs_
.
size
());
for
(
auto
&&
scvf
:
scvfs_
)
{
if
(
scvf
.
boundary
())
continue
;
flipScvfIndices_
[
scvf
.
index
()].
resize
(
scvf
.
numOutsideScvs
());
const
auto
insideScvIdx
=
scvf
.
insideScvIdx
();
// check which outside scvf has the insideScvIdx index in its outsideScvIndices
for
(
unsigned
int
i
=
0
;
i
<
scvf
.
numOutsideScvs
();
++
i
)
flipScvfIndices_
[
scvf
.
index
()][
i
]
=
findFlippedScvfIndex_
(
insideScvIdx
,
scvf
.
outsideScvIdx
(
i
));
}
if
(
scvf
.
boundary
())
continue
;
flipScvfIndices_
[
scvf
.
index
()].
resize
(
scvf
.
numOutsideScvs
());
const
auto
insideScvIdx
=
scvf
.
insideScvIdx
();
// check which outside scvf has the insideScvIdx index in its outsideScvIndices
for
(
unsigned
int
i
=
0
;
i
<
scvf
.
numOutsideScvs
();
++
i
)
flipScvfIndices_
[
scvf
.
index
()][
i
]
=
findFlippedScvfIndex_
(
insideScvIdx
,
scvf
.
outsideScvIdx
(
i
));
}
// build the connectivity map for an effecient assembly
...
...
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