diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/removeCells.C b/src/dynamicMesh/polyTopoChange/polyTopoChange/removeCells.C index bf5ad0acbe70bb39c6499241cec743f3533890f9..353a46930d2d0edbee27f07a02389675c07b4ad8 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/removeCells.C +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/removeCells.C @@ -2,8 +2,8 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -116,13 +116,23 @@ Foam::labelList Foam::removeCells::getExposedFaces } // Coupled faces: add number of cells using face across couple. - if (syncPar_) { - syncTools::syncFaceList + // Note cyclics done always, parallel bits only done if syncPar_ + + SubList<label> bndValues ( - mesh_, nCellsUsingFace, - plusEqOp<label>() + mesh_.nFaces()-mesh_.nInternalFaces(), + mesh_.nInternalFaces() + ); + + syncTools::syncBoundaryFaceList + ( + mesh_, + bndValues, + plusEqOp<label>(), + mapDistribute::transform(), + syncPar_ ); }