mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH:polyMeshTetDecomposition: extract reference before loop
This commit is contained in:
@ -210,6 +210,7 @@ Foam::labelList Foam::polyMeshTetDecomposition::findFaceBasePts
|
||||
)
|
||||
{
|
||||
const labelList& pOwner = mesh.faceOwner();
|
||||
const vectorField& pC = mesh.cellCentres();
|
||||
|
||||
// Find a suitable base point for each face, considering both
|
||||
// cells for interface faces or those on coupled patches
|
||||
@ -228,7 +229,7 @@ Foam::labelList Foam::polyMeshTetDecomposition::findFaceBasePts
|
||||
for(label faceI = nInternalFaces; faceI < mesh.nFaces(); faceI++)
|
||||
{
|
||||
neighbourCellCentres[faceI - nInternalFaces] =
|
||||
mesh.cellCentres()[pOwner[faceI]];
|
||||
pC[pOwner[faceI]];
|
||||
}
|
||||
|
||||
syncTools::swapBoundaryFacePositions(mesh, neighbourCellCentres);
|
||||
|
||||
Reference in New Issue
Block a user