Commit bda7164e authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'feature/source-stencil-improvement' into 'master'

[embedded] Make source stencil lookup slightly more efficient

See merge request !2653
parents 910cc64b 412989d4
......@@ -172,8 +172,8 @@ private:
if constexpr (domainId == bulkIdx)
const auto bulkElementIdx = couplingManager.problem(bulkIdx).gridGeometry().elementMapper().index(element);
if (sourceStencils_.count(bulkElementIdx))
if (auto stencil = sourceStencils_.find(bulkElementIdx); stencil != sourceStencils_.end())
return stencil->second;
return couplingManager.emptyStencil(domainId);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment