STYLE: use list methods find/found instead of findIndex function

This commit is contained in:
Mark Olesen
2017-10-24 19:07:34 +02:00
parent 5b8b689a37
commit 7d7b0bfe84
136 changed files with 369 additions and 441 deletions

View File

@ -2037,7 +2037,7 @@ Foam::label Foam::meshRefinement::addMeshedPatch
const dictionary& patchInfo
)
{
label meshedi = findIndex(meshedPatches_, name);
label meshedi = meshedPatches_.find(name);
if (meshedi != -1)
{
@ -2341,7 +2341,7 @@ void Foam::meshRefinement::findRegions
{
// Do a quick check for locationsOutsideMesh overlapping with
// inside ones.
label index = findIndex(insideRegions, regioni);
label index = insideRegions.find(regioni);
if (index != -1)
{
FatalErrorInFunction