mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: removeCells: handle exposing cyclic faces
This commit is contained in:
@ -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_
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user