diff --git a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C index d85faeb02c..f4731f43d7 100644 --- a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C +++ b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C @@ -818,7 +818,7 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells } } } - else if (nBoundaryAnchors == 7) + else if (nBoundaryAnchors == 7 && nonBoundaryAnchor != -1) { // Mark the cell. Store the (single!) non-boundary anchor point. hasSevenBoundaryAnchorPoints.set(celli, 1u); diff --git a/src/mesh/snappyHexMesh/snappyHexMeshDriver/snappyRefineDriver.C b/src/mesh/snappyHexMesh/snappyHexMeshDriver/snappyRefineDriver.C index 9ff590253e..20ce39f904 100644 --- a/src/mesh/snappyHexMesh/snappyHexMeshDriver/snappyRefineDriver.C +++ b/src/mesh/snappyHexMesh/snappyHexMeshDriver/snappyRefineDriver.C @@ -2278,14 +2278,12 @@ void Foam::snappyRefineDriver::doRefine 10 // maxIter ); - // Directional refinement -//XXXXX + // Directional shell refinement directionalShellRefine ( refineParams, 100 // maxIter ); -//XXXXX // Introduce baffles at surface intersections. Remove sections unreachable // from keepPoint.