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

@ -275,7 +275,7 @@ void Foam::faMeshDecomposition::decomposeMesh()
ioAddr.rename("faceProcAddressing");
labelIOList fvFaceProcAddressing(ioAddr);
fvFaceProcAddressingHash.resize(2*fvFaceProcAddressing.size());
fvFaceProcAddressingHash.reserve(fvFaceProcAddressing.size());
forAll(fvFaceProcAddressing, facei)
{
@ -355,7 +355,7 @@ void Foam::faMeshDecomposition::decomposeMesh()
Map<label>& curMap = procMeshEdgesMap_[procI];
curMap.clear();
curMap.resize(2*procEdges.size());
curMap.reserve(procEdges.size());
forAll(procEdges, edgeI)
{