mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: for-range, forAllIters() ... in dynamicMesh/
- reduced clutter when iterating over containers
This commit is contained in:
committed by
Andrew Heather
parent
f5163e50ff
commit
45590671ac
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
@ -398,9 +398,9 @@ void Foam::createShellMesh::calcPointRegions
|
||||
{
|
||||
label globalRegionI = pointGlobalRegions[facei][fp];
|
||||
|
||||
Map<label>::iterator fnd = globalToLocalRegion.find(globalRegionI);
|
||||
const auto fnd = globalToLocalRegion.cfind(globalRegionI);
|
||||
|
||||
if (fnd != globalToLocalRegion.end())
|
||||
if (fnd.found())
|
||||
{
|
||||
// Already encountered this global region. Assign same local one
|
||||
pRegions[fp] = fnd();
|
||||
|
||||
Reference in New Issue
Block a user