Commit 412989d4 authored by Timo Koch's avatar Timo Koch
Browse files

[embedded] Make source stencil lookup slightly more efficient

parent 910cc64b
Pipeline #4574 passed with stages
......@@ -172,8 +172,8 @@ private:
if constexpr (domainId == bulkIdx)
{
const auto bulkElementIdx = couplingManager.problem(bulkIdx).gridGeometry().elementMapper().index(element);
if (sourceStencils_.count(bulkElementIdx))
return sourceStencils_.at(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