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
570472f8
Commit
570472f8
authored
Nov 03, 2021
by
Martin Schneider
Browse files
[md][ffpm][box] Move mapper call out of loop
parent
23f9738d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/multidomain/boundary/stokesdarcy/box/projection.hh
View file @
570472f8
...
...
@@ -93,11 +93,11 @@ public:
auto
domainI
=
Dune
::
index_constant
<
freeFlowIdx
>
();
auto
fvGeometry
=
localView
(
couplingManager
.
problem
(
porousMediumIdx
).
gridGeometry
());
auto
elemVolVars
=
localView
(
darcyElemVolVars
.
gridVolVars
());
const
auto
darcyEIdxI
=
couplingManager
.
problem
(
porousMediumIdx
).
gridGeometry
().
elementMapper
().
index
(
darcyElement
);
// integrate darcy pressure over each coupling facet and average
for
(
const
auto
&
couplingFacet
:
couplingFacets
(
domainI
,
couplingManager
.
couplingMapper
(),
stokesScvf
.
insideScvIdx
(),
stokesScvf
.
localFaceIdx
()))
{
const
auto
darcyEIdxI
=
couplingManager
.
problem
(
porousMediumIdx
).
gridGeometry
().
elementMapper
().
index
(
darcyElement
);
const
auto
darcyEIdxJ
=
couplingFacet
.
pmEIdx
;
const
auto
&
element
=
couplingManager
.
problem
(
porousMediumIdx
).
gridGeometry
().
boundingBoxTree
().
entitySet
().
entity
(
couplingFacet
.
pmEIdx
);
...
...
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