zones: Renamed meshZones() -> zones()

This commit is contained in:
Henry Weller
2024-03-26 13:30:21 +00:00
parent 98cd7a85af
commit 339e20c0f8
4 changed files with 13 additions and 13 deletions

View File

@ -154,7 +154,7 @@ Foam::Zone<ZoneType, ZonesType>::~Zone()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class ZoneType, class ZonesType> template<class ZoneType, class ZonesType>
const ZonesType& Foam::Zone<ZoneType, ZonesType>::meshZones() const const ZonesType& Foam::Zone<ZoneType, ZonesType>::zones() const
{ {
return zones_; return zones_;
} }

View File

@ -154,7 +154,7 @@ public:
} }
//- Return ZonesType reference //- Return ZonesType reference
const ZonesType& meshZones() const; const ZonesType& zones() const;
//- Map storing the local index for every global index. Used to find //- Map storing the local index for every global index. Used to find
// the index of the item in the zone from the known global index. If // the index of the item in the zone from the known global index. If

View File

@ -62,12 +62,12 @@ void Foam::faceZone::calcFaceZonePatch() const
new primitiveFacePatch new primitiveFacePatch
( (
faceList(size()), faceList(size()),
meshZones().mesh().points() zones().mesh().points()
); );
primitiveFacePatch& patch = *patchPtr_; primitiveFacePatch& patch = *patchPtr_;
const faceList& f = meshZones().mesh().faces(); const faceList& f = zones().mesh().faces();
const labelList& addr = *this; const labelList& addr = *this;
const boolList& flip = flipMap(); const boolList& flip = flipMap();
@ -111,8 +111,8 @@ void Foam::faceZone::calcCellLayers() const
// Go through all the faces in the master zone. Choose the // Go through all the faces in the master zone. Choose the
// master or slave cell based on the face flip // master or slave cell based on the face flip
const labelList& own = meshZones().mesh().faceOwner(); const labelList& own = zones().mesh().faceOwner();
const labelList& nei = meshZones().mesh().faceNeighbour(); const labelList& nei = zones().mesh().faceNeighbour();
const labelList& mf = *this; const labelList& mf = *this;
@ -129,7 +129,7 @@ void Foam::faceZone::calcCellLayers() const
label ownCelli = own[mf[facei]]; label ownCelli = own[mf[facei]];
label neiCelli = label neiCelli =
( (
meshZones().mesh().isInternalFace(mf[facei]) zones().mesh().isInternalFace(mf[facei])
? nei[mf[facei]] ? nei[mf[facei]]
: -1 : -1
); );
@ -163,7 +163,7 @@ void Foam::faceZone::checkAddressing() const
const labelList& mf = *this; const labelList& mf = *this;
// Note: nFaces, nCells might not be set yet on mesh so use owner size // Note: nFaces, nCells might not be set yet on mesh so use owner size
const label nFaces = meshZones().mesh().faceOwner().size(); const label nFaces = zones().mesh().faceOwner().size();
bool hasWarned = false; bool hasWarned = false;
forAll(mf, i) forAll(mf, i)
@ -349,8 +349,8 @@ const Foam::labelList& Foam::faceZone::meshEdges() const
( (
operator()().meshEdges operator()().meshEdges
( (
meshZones().mesh().edges(), zones().mesh().edges(),
meshZones().mesh().pointEdges() zones().mesh().pointEdges()
) )
); );
} }
@ -388,7 +388,7 @@ bool Foam::faceZone::checkDefinition(const bool report) const
{ {
return Zone<faceZone, meshFaceZones>::checkDefinition return Zone<faceZone, meshFaceZones>::checkDefinition
( (
meshZones().mesh().faces().size(), zones().mesh().faces().size(),
report report
); );
} }
@ -396,7 +396,7 @@ bool Foam::faceZone::checkDefinition(const bool report) const
bool Foam::faceZone::checkParallelSync(const bool report) const bool Foam::faceZone::checkParallelSync(const bool report) const
{ {
const polyMesh& mesh = meshZones().mesh(); const polyMesh& mesh = zones().mesh();
const polyBoundaryMesh& bm = mesh.boundaryMesh(); const polyBoundaryMesh& bm = mesh.boundaryMesh();
bool hasError = false; bool hasError = false;

View File

@ -124,7 +124,7 @@ bool Foam::pointZone::checkDefinition(const bool report) const
bool Foam::pointZone::checkParallelSync(const bool report) const bool Foam::pointZone::checkParallelSync(const bool report) const
{ {
const polyMesh& mesh = meshZones().mesh(); const polyMesh& mesh = zones().mesh();
const label index = zones_.findIndex(name()); const label index = zones_.findIndex(name());