Skip to content
Snippets Groups Projects
Commit fb1b0e4f authored by Timo Koch's avatar Timo Koch
Browse files

[fvgeometry][tpfa] Reserve memory for scvfs to speedup bind

parent 8c8d5267
No related branches found
No related tags found
Loading
...@@ -258,6 +258,7 @@ public: ...@@ -258,6 +258,7 @@ public:
{ {
neighborScvs_.reserve(element.subEntities(1)); neighborScvs_.reserve(element.subEntities(1));
neighborScvfIndices_.reserve(element.subEntities(1)); neighborScvfIndices_.reserve(element.subEntities(1));
neighborScvfs_.reserve(element.subEntities(1));
if (intersection.neighbor()) if (intersection.neighbor())
makeNeighborGeometries(intersection.outside()); makeNeighborGeometries(intersection.outside());
} }
...@@ -320,6 +321,8 @@ public: ...@@ -320,6 +321,8 @@ public:
{ {
clear(); clear();
elementPtr_ = &element; elementPtr_ = &element;
scvfs_.reserve(element.subEntities(1));
scvfIndices_.reserve(element.subEntities(1));
makeElementGeometries(element); makeElementGeometries(element);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment