mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: snappyHexMesh: parallel inconsistency. Fixes #3106
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2015 OpenFOAM Foundation
|
Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
Copyright (C) 2015-2022 OpenCFD Ltd.
|
Copyright (C) 2015-2022,2024 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -513,7 +513,9 @@ void Foam::snappySnapDriver::calcNearestFacePointProperties
|
|||||||
forAll(pFaces, i)
|
forAll(pFaces, i)
|
||||||
{
|
{
|
||||||
label facei = pFaces[i];
|
label facei = pFaces[i];
|
||||||
if (isMasterFace[facei] && faceSurfaceGlobalRegion[facei] != -1)
|
label globalRegioni = faceSurfaceGlobalRegion[facei];
|
||||||
|
|
||||||
|
if (isMasterFace[pp.addressing()[facei]] && globalRegioni != -1)
|
||||||
{
|
{
|
||||||
nFaces++;
|
nFaces++;
|
||||||
}
|
}
|
||||||
@ -535,7 +537,7 @@ void Foam::snappySnapDriver::calcNearestFacePointProperties
|
|||||||
label facei = pFaces[i];
|
label facei = pFaces[i];
|
||||||
label globalRegioni = faceSurfaceGlobalRegion[facei];
|
label globalRegioni = faceSurfaceGlobalRegion[facei];
|
||||||
|
|
||||||
if (isMasterFace[facei] && globalRegioni != -1)
|
if (isMasterFace[pp.addressing()[facei]] && globalRegioni != -1)
|
||||||
{
|
{
|
||||||
pNormals[nFaces] = faceSurfaceNormal[facei];
|
pNormals[nFaces] = faceSurfaceNormal[facei];
|
||||||
pDisp[nFaces] = faceDisp[facei];
|
pDisp[nFaces] = faceDisp[facei];
|
||||||
|
|||||||
Reference in New Issue
Block a user