mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: revert bitSet/HashSet setMany() to set() method (issue #837)
- improves backward compatibility and more naming consistency. Retain setMany(iter1, iter2) to avoid ambiguity with the PackedList::set(index, value) method.
This commit is contained in:
@ -177,17 +177,17 @@ Foam::label Foam::probes::prepare()
|
||||
{
|
||||
wordHashSet currentFields;
|
||||
|
||||
currentFields.insertMany(scalarFields_);
|
||||
currentFields.insertMany(vectorFields_);
|
||||
currentFields.insertMany(sphericalTensorFields_);
|
||||
currentFields.insertMany(symmTensorFields_);
|
||||
currentFields.insertMany(tensorFields_);
|
||||
currentFields.insert(scalarFields_);
|
||||
currentFields.insert(vectorFields_);
|
||||
currentFields.insert(sphericalTensorFields_);
|
||||
currentFields.insert(symmTensorFields_);
|
||||
currentFields.insert(tensorFields_);
|
||||
|
||||
currentFields.insertMany(surfaceScalarFields_);
|
||||
currentFields.insertMany(surfaceVectorFields_);
|
||||
currentFields.insertMany(surfaceSphericalTensorFields_);
|
||||
currentFields.insertMany(surfaceSymmTensorFields_);
|
||||
currentFields.insertMany(surfaceTensorFields_);
|
||||
currentFields.insert(surfaceScalarFields_);
|
||||
currentFields.insert(surfaceVectorFields_);
|
||||
currentFields.insert(surfaceSphericalTensorFields_);
|
||||
currentFields.insert(surfaceSymmTensorFields_);
|
||||
currentFields.insert(surfaceTensorFields_);
|
||||
|
||||
DebugInfo
|
||||
<< "Probing fields: " << currentFields << nl
|
||||
|
||||
@ -243,11 +243,11 @@ bool Foam::surfMeshSamplers::execute()
|
||||
|
||||
// The acceptable fields
|
||||
wordHashSet acceptable(added);
|
||||
acceptable.insertMany(acceptType<scalar>());
|
||||
acceptable.insertMany(acceptType<vector>());
|
||||
acceptable.insertMany(acceptType<sphericalTensor>());
|
||||
acceptable.insertMany(acceptType<symmTensor>());
|
||||
acceptable.insertMany(acceptType<tensor>());
|
||||
acceptable.insert(acceptType<scalar>());
|
||||
acceptable.insert(acceptType<vector>());
|
||||
acceptable.insert(acceptType<sphericalTensor>());
|
||||
acceptable.insert(acceptType<symmTensor>());
|
||||
acceptable.insert(acceptType<tensor>());
|
||||
|
||||
const wordList fields = acceptable.sortedToc();
|
||||
if (!fields.empty())
|
||||
|
||||
@ -1572,7 +1572,7 @@ Foam::isoSurface::isoSurface
|
||||
{
|
||||
const face& f = mesh_.faces()[cpp.start()+i];
|
||||
|
||||
isBoundaryPoint.setMany(f);
|
||||
isBoundaryPoint.set(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1584,7 +1584,7 @@ Foam::isoSurface::isoSurface
|
||||
{
|
||||
const face& f = mesh_.faces()[pp.start()+i];
|
||||
|
||||
isBoundaryPoint.setMany(f);
|
||||
isBoundaryPoint.set(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -695,7 +695,7 @@ void Foam::isoSurfaceCell::calcSnappedPoint
|
||||
{
|
||||
const face& f = mesh_.faces()[facei++];
|
||||
|
||||
isBoundaryPoint.setMany(f);
|
||||
isBoundaryPoint.set(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user