mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use updated HashTable methods
This commit is contained in:
committed by
Andrew Heather
parent
5dcced7b86
commit
d9727fad1c
@ -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
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user