mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use HashTable iterator 'val()' method instead of 'object()'
This commit is contained in:
@ -800,7 +800,7 @@ void Foam::meshToMesh::constructFromCuttingPatches
|
||||
forAllConstIters(patchMap, iter)
|
||||
{
|
||||
const word& tgtPatchName = iter.key();
|
||||
const word& srcPatchName = iter.object();
|
||||
const word& srcPatchName = iter.val();
|
||||
|
||||
const polyPatch& srcPatch = srcBm[srcPatchName];
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ Foam::label Foam::probes::classifyFields()
|
||||
forAllConstIters(available, iter)
|
||||
{
|
||||
const word& fieldType = iter.key();
|
||||
const wordList fieldNames = iter.object().sortedToc();
|
||||
const wordList fieldNames = iter.val().sortedToc();
|
||||
|
||||
const label count = fieldNames.size(); // pre-filtered, so non-empty
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ Foam::label Foam::sampledSets::classifyFields()
|
||||
forAllConstIters(available, iter)
|
||||
{
|
||||
const word& fieldType = iter.key();
|
||||
const wordList fieldNames = iter.object().sortedToc();
|
||||
const wordList fieldNames = iter.val().sortedToc();
|
||||
|
||||
const label count = fieldNames.size(); // pre-filtered, so non-empty
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ Foam::label Foam::sampledSurfaces::classifyFields()
|
||||
// Total number selected
|
||||
forAllConstIters(available, iter)
|
||||
{
|
||||
nFields += iter.object().size();
|
||||
nFields += iter.val().size();
|
||||
}
|
||||
|
||||
return nFields;
|
||||
|
||||
@ -257,7 +257,7 @@ void Foam::cuttingSurfaceBase::walkCellCuts
|
||||
// they can also be used to determine the correct face orientation.
|
||||
|
||||
const edge refEdge = localFaces.begin().key();
|
||||
label nextFace = localFaces.begin().object()[0];
|
||||
label nextFace = localFaces.begin().val()[0];
|
||||
|
||||
DebugInfo
|
||||
<< "search face " << nextFace << " IN " << localEdges << endl;
|
||||
@ -274,23 +274,23 @@ void Foam::cuttingSurfaceBase::walkCellCuts
|
||||
forAllIters(localFaces, iter)
|
||||
{
|
||||
DebugInfo
|
||||
<< "lookup " << nextFace << " in " << iter.object() << nl;
|
||||
<< "lookup " << nextFace << " in " << iter.val() << nl;
|
||||
|
||||
// Find local index (0,1) or -1 on failure
|
||||
const label got = iter.object().which(nextFace);
|
||||
const label got = iter.val().which(nextFace);
|
||||
|
||||
if (got != -1)
|
||||
{
|
||||
ok = true;
|
||||
|
||||
// The other face
|
||||
nextFace = iter.object()[(got?0:1)];
|
||||
nextFace = iter.val()[(got?0:1)];
|
||||
|
||||
// The edge -> cut point
|
||||
localFaceLoop.append(localEdges[iter.key()]);
|
||||
|
||||
DebugInfo
|
||||
<<" faces " << iter.object()
|
||||
<<" faces " << iter.val()
|
||||
<< " point " << localFaceLoop.last()
|
||||
<< " edge=" << iter.key() << " nextFace=" << nextFace
|
||||
<< nl;
|
||||
|
||||
@ -1185,7 +1185,7 @@ Foam::label Foam::isoSurfaceCell::markDanglingTriangles
|
||||
// with only one connected edge (= this edge)
|
||||
|
||||
const label edgeI = iter.key();
|
||||
const labelList& otherEdgeFaces = iter.object();
|
||||
const labelList& otherEdgeFaces = iter.val();
|
||||
|
||||
// Remove all dangling triangles
|
||||
if (danglingTriangle(faceEdges[edgeFace0[edgeI]], edgeFace1))
|
||||
|
||||
Reference in New Issue
Block a user