mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add operator[](const word&) as "find-by-name" to some classes
- affected: polyBoundary, fvBoundaryMesh, ZoneMesh, searchableSurfaces
before:
const label zoneI = mesh.cellZones().findZoneID(zoneName);
const cellZone& cz = mesh.cellZones()[zoneI];
after:
const cellZone& cz = mesh.cellZones()[zoneName];
This commit is contained in:
@ -161,7 +161,7 @@ void Foam::fieldValues::faceSource::setFaceZoneFaces()
|
||||
|
||||
void Foam::fieldValues::faceSource::setPatchFaces()
|
||||
{
|
||||
label patchId = mesh().boundaryMesh().findPatchID(sourceName_);
|
||||
const label patchId = mesh().boundaryMesh().findPatchID(sourceName_);
|
||||
|
||||
if (patchId < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user