mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: consistency of HashSet setMany(), insertMany() with packed-list version
- this also provides a better separation of the intent (ie, inserting a single value, or inserting multiply values)
This commit is contained in:
@ -349,11 +349,7 @@ int main(int argc, char *argv[])
|
||||
forAll(oldToNew, oldCelli)
|
||||
{
|
||||
const labelList& added = oldToNew[oldCelli];
|
||||
|
||||
forAll(added, i)
|
||||
{
|
||||
newCells.insert(added[i]);
|
||||
}
|
||||
newCells.insertMany(added);
|
||||
}
|
||||
|
||||
Info<< "Writing refined cells ("
|
||||
|
||||
@ -301,10 +301,7 @@ void Foam::regionSide::walkAllPointConnectedFaces
|
||||
const label facei = iter.key();
|
||||
const labelList& fEdges = mesh.faceEdges()[facei];
|
||||
|
||||
forAll(fEdges, fEdgeI)
|
||||
{
|
||||
regionEdges.insert(fEdges[fEdgeI]);
|
||||
}
|
||||
regionEdges.insertMany(fEdges);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user