STYLE: explicit reference to mesh db for schemes, interfaceTracking etc

This commit is contained in:
Mark Olesen
2023-01-02 09:33:00 +01:00
parent 0c756cc676
commit 94a79ef24f
27 changed files with 214 additions and 225 deletions

View File

@ -135,12 +135,11 @@ void Foam::processorFaPatch::makeNonGlobalPatchPoints() const
// create a 1->1 map
// Can not use faGlobalMeshData at this point yet
// - use polyMesh globalData instead
if
(
!Pstream::parRun()
|| !boundaryMesh().mesh()().globalData().nGlobalPoints()
)
const auto& pMeshGlobalData = boundaryMesh().mesh().mesh().globalData();
if (!Pstream::parRun() || !pMeshGlobalData.nGlobalPoints())
{
// 1 -> 1 mapping
nonGlobalPatchPointsPtr_.reset(new labelList(identity(nPoints())));
@ -151,8 +150,7 @@ void Foam::processorFaPatch::makeNonGlobalPatchPoints() const
labelList& ngpp = *nonGlobalPatchPointsPtr_;
// Get reference to shared points
const labelList& sharedPoints =
boundaryMesh().mesh()().globalData().sharedPointLabels();
const labelList& sharedPoints = pMeshGlobalData.sharedPointLabels();
const labelList& faMeshPatchPoints = pointLabels();