createBaffles: Fixed owner/neighbour indexing bug when operating in parallel

Resolves bug report https://bugs.openfoam.org/view.php?id=3970
This commit is contained in:
Will Bainbridge
2023-04-13 15:41:51 +01:00
parent ad678e1829
commit 5e8d1ff99e

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -309,8 +309,8 @@ label createFaces
{ {
const polyPatch& newPp = const polyPatch& newPp =
fZone.flipMap()[zoneFacei] fZone.flipMap()[zoneFacei]
? bMesh[newOwnerPatchi] ? bMesh[newNeighbourPatchi]
: bMesh[newNeighbourPatchi]; : bMesh[newOwnerPatchi];
// We cannot move coupled faces to different coupled // We cannot move coupled faces to different coupled
// faces. Generate an error if this is attempted. // faces. Generate an error if this is attempted.