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
412989d4
Commit
412989d4
authored
May 27, 2021
by
Timo Koch
Browse files
[embedded] Make source stencil lookup slightly more efficient
parent
910cc64b
Pipeline
#4574
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
dumux/multidomain/embedded/extendedsourcestencil.hh
View file @
412989d4
...
...
@@ -172,8 +172,8 @@ private:
if
constexpr
(
domainId
==
bulkIdx
)
{
const
auto
bulkElementIdx
=
couplingManager
.
problem
(
bulkIdx
).
gridGeometry
().
elementMapper
().
index
(
element
);
if
(
sourceStencils_
.
count
(
bulkElementIdx
))
return
s
ourceStencils_
.
at
(
bulkElementIdx
)
;
if
(
auto
stencil
=
sourceStencils_
.
find
(
bulkElementIdx
)
;
stencil
!=
sourceStencils_
.
end
()
)
return
s
tencil
->
second
;
}
return
couplingManager
.
emptyStencil
(
domainId
);
...
...
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