From 60e5f0e0aea9e93a2bb457e8cb80c818e52a70e5 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Thu, 22 Aug 2024 16:47:29 +0100
Subject: [PATCH] BUG: wall distance: select wall-point connected cells. See
 #3215

---
 src/meshTools/cellDist/cellDistFuncs.C | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/meshTools/cellDist/cellDistFuncs.C b/src/meshTools/cellDist/cellDistFuncs.C
index 86cfdd15880..9a3a1b00d60 100644
--- a/src/meshTools/cellDist/cellDistFuncs.C
+++ b/src/meshTools/cellDist/cellDistFuncs.C
@@ -256,7 +256,7 @@ void Foam::cellDistFuncs::correctBoundaryFaceCells
             {
                 if (areaFraction && (areaFraction()[patchFacei] <= 0.5))
                 {
-                    // is mostly coupled
+                    // For cyclicACMI: more cyclic than wall
                     continue;
                 }
 
@@ -311,9 +311,9 @@ void Foam::cellDistFuncs::correctBoundaryPointCells
                 // Check cells with face on wall
                 forAll(patch, patchFacei)
                 {
-                    if (!areaFraction || (areaFraction()[patchFacei] <= 0.5))
+                    if (areaFraction && (areaFraction()[patchFacei] <= 0.5))
                     {
-                        // face mostly coupled
+                        // For cyclicACMI: more cyclic than wall
                         isWallPoint.unset(localFaces[patchFacei]);
                     }
                 }
-- 
GitLab