From 75efb7603390e7eb48be508cb35f2b73d6887b93 Mon Sep 17 00:00:00 2001 From: mattijs <m.janssens@opencfd.co.uk> Date: Wed, 6 Aug 2008 10:25:00 +0100 Subject: [PATCH] exposed boudarry faces --- .../layerAdditionRemoval/removeCellLayer.C | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/dynamicMesh/layerAdditionRemoval/removeCellLayer.C b/src/dynamicMesh/layerAdditionRemoval/removeCellLayer.C index cb141ba6459..c5927a61289 100644 --- a/src/dynamicMesh/layerAdditionRemoval/removeCellLayer.C +++ b/src/dynamicMesh/layerAdditionRemoval/removeCellLayer.C @@ -235,7 +235,18 @@ void Foam::layerAdditionRemoval::removeCellLayer mesh.faceZones()[modifiedFaceZone].whichFace(curFaceID) ]; } - + + label newNei; + + if (curFaceID < mesh.nInternalFaces()) + { + newNei = nei[curFaceID]; + } + else + { + newNei = -1; + } + // Modify the face ref.setAction ( @@ -244,7 +255,7 @@ void Foam::layerAdditionRemoval::removeCellLayer newFace, // modified face curFaceID, // label of face being modified own[curFaceID], // owner - nei[curFaceID], // neighbour + newNei, // neighbour false, // face flip mesh.boundaryMesh().whichPatch(curFaceID),// patch for face false, // remove from zone -- GitLab