Improvement in globalProcFaceIndex
globalProcFaceIndex::globalLabel returns a reference and not a copy
This commit is contained in:
parent
028cafdb32
commit
46756467b4
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ void Foam::globalProcFaceIndex::calcFaceIndex()
|
||||||
|
|
||||||
const polyBoundaryMesh& patches = mesh_.boundaryMesh();
|
const polyBoundaryMesh& patches = mesh_.boundaryMesh();
|
||||||
|
|
||||||
// Assing unique face label to all master processor faces
|
// Assign unique face label to all master processor faces
|
||||||
|
|
||||||
// Count faces and processor faces per processor
|
// Count faces and processor faces per processor
|
||||||
forAll (patches, patchI)
|
forAll (patches, patchI)
|
||||||
|
|
|
@ -33,7 +33,7 @@ Description
|
||||||
|
|
||||||
Face offsets counts a number of unique faces on each processor,
|
Face offsets counts a number of unique faces on each processor,
|
||||||
excluding slave processor patch faces, which are given master face index.
|
excluding slave processor patch faces, which are given master face index.
|
||||||
If needed, global face indes from all faces can be derived from this data
|
If needed, global face index from all faces can be derived from this data
|
||||||
|
|
||||||
Currently, faces are ordered with internal faces first, followed by patch
|
Currently, faces are ordered with internal faces first, followed by patch
|
||||||
faces in patch order, excluding slave processor patches.
|
faces in patch order, excluding slave processor patches.
|
||||||
|
@ -122,7 +122,7 @@ public:
|
||||||
|
|
||||||
//- Return global face label for all faces of current mesh
|
//- Return global face label for all faces of current mesh
|
||||||
// Sized to number of live faces in the mesh
|
// Sized to number of live faces in the mesh
|
||||||
const labelList globalLabel() const
|
const labelList& globalLabel() const
|
||||||
{
|
{
|
||||||
return globalLabel_;
|
return globalLabel_;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue