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

[fcstaggered][elemvolvars] Use a local estimate for the size of boundary volvars

parent 4bccf77a
No related branches found
No related tags found
1 merge request!3655[fcstaggered][elemvolvars] Use a local estimate for the size of boundary volvars
Pipeline #36445 passed
+3
...@@ -96,8 +96,9 @@ public: ...@@ -96,8 +96,9 @@ public:
return; return;
clear_(); clear_();
boundaryVolVarIndices_.reserve(fvGeometry.gridGeometry().numBoundaryScv()); // upper bound of size is the number of all scvfs minus frontal scvfs
boundaryVolumeVariables_.reserve(fvGeometry.gridGeometry().numBoundaryScv()); boundaryVolVarIndices_.reserve(fvGeometry.numScvf()-element.subEntities(1));
boundaryVolumeVariables_.reserve(fvGeometry.numScvf()-element.subEntities(1));
for (const auto& scvf : scvfs(fvGeometry)) for (const auto& scvf : scvfs(fvGeometry))
{ {
......
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