From 5e8d1ff99ed35bc94a6874c185ade17a23e62bae Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 13 Apr 2023 15:41:51 +0100 Subject: [PATCH] createBaffles: Fixed owner/neighbour indexing bug when operating in parallel Resolves bug report https://bugs.openfoam.org/view.php?id=3970 --- .../mesh/manipulation/createBaffles/createBaffles.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/utilities/mesh/manipulation/createBaffles/createBaffles.C b/applications/utilities/mesh/manipulation/createBaffles/createBaffles.C index 95fe574247..a3aa262cb0 100644 --- a/applications/utilities/mesh/manipulation/createBaffles/createBaffles.C +++ b/applications/utilities/mesh/manipulation/createBaffles/createBaffles.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -309,8 +309,8 @@ label createFaces { const polyPatch& newPp = fZone.flipMap()[zoneFacei] - ? bMesh[newOwnerPatchi] - : bMesh[newNeighbourPatchi]; + ? bMesh[newNeighbourPatchi] + : bMesh[newOwnerPatchi]; // We cannot move coupled faces to different coupled // faces. Generate an error if this is attempted.