From 74240dbc1bd6526e6b2c4d9c622f2c821cb4231a Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sat, 30 Dec 2017 09:31:03 +0000 Subject: [PATCH] Resize based on actual patch size: immersed boundary --- src/meshTools/cellDist/cellDistFuncs.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshTools/cellDist/cellDistFuncs.C b/src/meshTools/cellDist/cellDistFuncs.C index 4e2f657a7..5822c02b4 100644 --- a/src/meshTools/cellDist/cellDistFuncs.C +++ b/src/meshTools/cellDist/cellDistFuncs.C @@ -188,7 +188,6 @@ Foam::label Foam::cellDistFuncs::getPointNeighbours } } - if (debug) { // Check for duplicates @@ -263,9 +262,10 @@ Foam::label Foam::cellDistFuncs::maxPatchSize(const labelHashSet& patchIDs) { const polyPatch& patch = mesh().boundaryMesh()[patchI]; - maxSize = Foam::max(maxSize, patch.size()); + maxSize = Foam::max(maxSize, patch.faceCells().size()); } } + return maxSize; }