mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: check iterator validity with good() instead of found()
- aligns better with other container checks
This commit is contained in:
@ -63,7 +63,7 @@ void Foam::domainDecomposition::addInterProcFace
|
||||
|
||||
const auto patchiter = nbrToInterPatch[ownerProc].cfind(nbrProc);
|
||||
|
||||
if (patchiter.found())
|
||||
if (patchiter.good())
|
||||
{
|
||||
// Existing interproc patch. Add to both sides.
|
||||
const label toNbrProcPatchi = *patchiter;
|
||||
|
||||
@ -657,7 +657,7 @@ autoPtr<mapDistributePolyMesh> redistributeAndWrite
|
||||
// We don't want to map the decomposition (mapping already tested when
|
||||
// mapping the cell centre field)
|
||||
auto iter = objects.find("cellDist");
|
||||
if (iter.found())
|
||||
if (iter.good())
|
||||
{
|
||||
objects.erase(iter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user