BUG: snappyHexMesh: parallel inconsistency. Fixes #3106
This commit is contained in:
parent
613959c52b
commit
3b966afb9c
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
Copyright (C) 2015-2022 OpenCFD Ltd.
|
||||
Copyright (C) 2015-2022,2024 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -513,7 +513,9 @@ void Foam::snappySnapDriver::calcNearestFacePointProperties
|
||||
forAll(pFaces, i)
|
||||
{
|
||||
label facei = pFaces[i];
|
||||
if (isMasterFace[facei] && faceSurfaceGlobalRegion[facei] != -1)
|
||||
label globalRegioni = faceSurfaceGlobalRegion[facei];
|
||||
|
||||
if (isMasterFace[pp.addressing()[facei]] && globalRegioni != -1)
|
||||
{
|
||||
nFaces++;
|
||||
}
|
||||
@ -535,7 +537,7 @@ void Foam::snappySnapDriver::calcNearestFacePointProperties
|
||||
label facei = pFaces[i];
|
||||
label globalRegioni = faceSurfaceGlobalRegion[facei];
|
||||
|
||||
if (isMasterFace[facei] && globalRegioni != -1)
|
||||
if (isMasterFace[pp.addressing()[facei]] && globalRegioni != -1)
|
||||
{
|
||||
pNormals[nFaces] = faceSurfaceNormal[facei];
|
||||
pDisp[nFaces] = faceDisp[facei];
|
||||
|
Loading…
Reference in New Issue
Block a user