ENH: use updated HashTable methods

This commit is contained in:
Mark Olesen
2023-09-28 16:23:10 +02:00
committed by Andrew Heather
parent 5dcced7b86
commit d9727fad1c
52 changed files with 107 additions and 119 deletions

View File

@ -67,10 +67,10 @@ void Foam::cuttingSurfaceBase::walkCellCuts
DynamicList<label> localFaceLoop(16);
// Local scratch space for edge to pointId
EdgeMap<label> localEdges(128);
EdgeMap<label> localEdges;
// Local scratch space for edge to faceId
EdgeMap<edge> localFaces(128);
EdgeMap<edge> localFaces;
// Avoid duplicates for cuts exactly through a mesh point.
// No other way to distinguish them, since there is no single edge

View File

@ -206,7 +206,7 @@ Foam::isoSurfaceTopo::tetCutAddressing::tetCutAddressing
if (useSnap)
{
// Some, but not all, cells may have point snapping
snapVertsLookup_.resize(4*nCutCells);
snapVertsLookup_.reserve(2*nCutCells);
}
if (debugCutTetsOn_)
{
@ -1390,7 +1390,7 @@ Foam::isoSurfaceTopo::isoSurfaceTopo
const labelList& mp = s.meshPoints();
const edgeList& surfEdges = s.edges();
const labelListList& edgeFaces = s.edgeFaces();
openEdgeIds.resize(2*s.size());
openEdgeIds.reserve(s.size());
forAll(edgeFaces, edgei)
{