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:
@ -225,9 +225,9 @@ void syncEdges(const triSurface& p, labelHashSet& markedEdges)
|
||||
const edgeList& edges = p.edges();
|
||||
edgeHashSet edgeSet(2*markedEdges.size());
|
||||
|
||||
forAllConstIter(labelHashSet, markedEdges, iter)
|
||||
for (const label edgei : markedEdges)
|
||||
{
|
||||
edgeSet.insert(edges[iter.key()]);
|
||||
edgeSet.insert(edges[edgei]);
|
||||
}
|
||||
|
||||
forAll(edges, edgei)
|
||||
|
||||
@ -202,11 +202,7 @@ int main(int argc, char *argv[])
|
||||
for (const wordRe& zoneName : zoneNames)
|
||||
{
|
||||
labelList zoneIDs = findStrings(zoneName, allZoneNames);
|
||||
|
||||
forAll(zoneIDs, j)
|
||||
{
|
||||
includeFaceZones.insert(zoneIDs[j]);
|
||||
}
|
||||
includeFaceZones.insertMany(zoneIDs);
|
||||
|
||||
if (zoneIDs.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user