Skip to content
Snippets Groups Projects
Commit ce3a271c authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: removeCells: handle exposing cyclic faces

parent c8e382a3
Branches
Tags
1 merge request!1Feature snappy hex mesh
......@@ -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_
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment