BUG: removeCells: handle exposing cyclic faces

This commit is contained in:
mattijs
2015-10-14 14:45:45 +01:00
parent 428dff7711
commit e7203dbd44

View File

@ -2,8 +2,8 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. 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. // 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
(
nCellsUsingFace,
mesh_.nFaces()-mesh_.nInternalFaces(),
mesh_.nInternalFaces()
);
syncTools::syncBoundaryFaceList
( (
mesh_, mesh_,
nCellsUsingFace, bndValues,
plusEqOp<label>() plusEqOp<label>(),
mapDistribute::transform(),
syncPar_
); );
} }