ENH: snappyLayerDriver - ensure parallel consistent rebuilding of face centres

This commit is contained in:
Andrew Heather
2020-12-15 20:38:41 +00:00
parent 05bf4e119a
commit b012475c01

View File

@ -835,6 +835,10 @@ void Foam::snappyLayerDriver::handleWarpedFaces
const pointField& points = mesh.points();
// Local reference to face centres also used to trigger consistent
// [re-]building of demand-driven face centres and areas
const vectorField& faceCentres = mesh.faceCentres();
label nWarpedFaces = 0;
forAll(pp, i)
@ -852,7 +856,7 @@ void Foam::snappyLayerDriver::handleWarpedFaces
scalar edgeLen = edge0Len/(1<<ownLevel);
// Normal distance to face centre plane
const point& fc = mesh.faceCentres()[faceI];
const point& fc = faceCentres[faceI];
const vector& fn = pp.faceNormals()[i];
scalarField vProj(f.size());