Skip to content
Snippets Groups Projects
Commit f758f27f authored by sergio's avatar sergio
Browse files

BUG: Managing topoBitSet as source in haloToCell. See issue #2137

parent a98467f0
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ License ...@@ -28,6 +28,7 @@ License
#include "haloToCell.H" #include "haloToCell.H"
#include "polyMesh.H" #include "polyMesh.H"
#include "cellSet.H" #include "cellSet.H"
#include "topoBitSet.H"
#include "syncTools.H" #include "syncTools.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
...@@ -78,15 +79,21 @@ void Foam::haloToCell::combine(topoSet& set, const bool add) const ...@@ -78,15 +79,21 @@ void Foam::haloToCell::combine(topoSet& set, const bool add) const
const labelList& faceOwn = mesh_.faceOwner(); const labelList& faceOwn = mesh_.faceOwner();
const labelList& faceNei = mesh_.faceNeighbour(); const labelList& faceNei = mesh_.faceNeighbour();
// The starting set of cells // The starting set of cells
bitSet current(cells.size()); bitSet current(cells.size());
for (const label celli : set) if (isA<topoBitSet>(set))
{ {
current.set(celli); current |= refCast<const topoBitSet>(set).addressing();
} }
else
{
for (const label celli : set)
{
current.set(celli);
}
}
// The perimeter faces of the cell set // The perimeter faces of the cell set
bitSet outsideFaces(mesh_.nFaces()); bitSet outsideFaces(mesh_.nFaces());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment