diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C index 3d50390b01..f86c4446c7 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2012-2016 OpenFOAM Foundation - Copyright (C) 2015-2018 OpenCFD Ltd. + Copyright (C) 2015-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -189,7 +189,7 @@ Foam::tetDecomposer::tetDecomposer(const polyMesh& mesh) void Foam::tetDecomposer::setRefinement ( const decompositionType decomposeType, - const PackedBoolList& decomposeCell, + const bitSet& decomposeCell, polyTopoChange& meshMod ) { @@ -213,7 +213,7 @@ void Foam::tetDecomposer::setRefinement // Determine for every face whether it borders a cell that is decomposed - PackedBoolList decomposeFace(mesh_.nFaces()); + bitSet decomposeFace(mesh_.nFaces()); { for (label facei = 0; facei < mesh_.nInternalFaces(); facei++) { diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H index 56cd45561c..cd53c03499 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2012-2016 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -42,7 +42,7 @@ SourceFiles #define tetDecomposer_H #include "DynamicList.H" -#include "PackedBoolList.H" +#include "bitSet.H" #include "boolList.H" #include "typeInfo.H" #include "Enum.H" @@ -192,7 +192,7 @@ public: void setRefinement ( const decompositionType decomposeType, - const PackedBoolList& decomposeCell, + const bitSet& decomposeCell, polyTopoChange& meshMod ); diff --git a/src/sampling/sampledSet/shortestPath/shortestPathSet.C b/src/sampling/sampledSet/shortestPath/shortestPathSet.C index 6208a361a3..69c97ee718 100644 --- a/src/sampling/sampledSet/shortestPath/shortestPathSet.C +++ b/src/sampling/sampledSet/shortestPath/shortestPathSet.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2019 OpenCFD Ltd. + Copyright (C) 2017-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -55,7 +55,7 @@ Foam::label Foam::shortestPathSet::findMinFace const polyMesh& mesh, const label cellI, const List& allFaceInfo, - const PackedBoolList& isLeakPoint, + const bitSet& isLeakPoint, const bool distanceMode, const point& origin ) @@ -235,8 +235,8 @@ void Foam::shortestPathSet::calculateDistance void Foam::shortestPathSet::sync ( const polyMesh& mesh, - PackedBoolList& isLeakFace, - PackedBoolList& isLeakPoint, + bitSet& isLeakFace, + bitSet& isLeakPoint, const label celli, point& origin, bool& findMinDistance @@ -286,8 +286,8 @@ bool Foam::shortestPathSet::touchesWall const polyMesh& mesh, const label facei, - PackedBoolList& isLeakFace, - const PackedBoolList& isLeakPoint + bitSet& isLeakFace, + const bitSet& isLeakPoint ) const { // Check if facei touches leakPoint @@ -378,7 +378,7 @@ bool Foam::shortestPathSet::genSingleLeakPath const bool markLeakPath, const label iter, const polyMesh& mesh, - const PackedBoolList& isBlockedFace, + const bitSet& isBlockedFace, const point& insidePoint, const label insideCelli, const point& outsidePoint, @@ -393,9 +393,9 @@ bool Foam::shortestPathSet::genSingleLeakPath DynamicList& samplingCurveDist, // State of current leak paths - PackedBoolList& isLeakCell, - PackedBoolList& isLeakFace, - PackedBoolList& isLeakPoint, + bitSet& isLeakCell, + bitSet& isLeakFace, + bitSet& isLeakPoint, // Work storage List& allFaceInfo, @@ -558,7 +558,7 @@ bool Foam::shortestPathSet::genSingleLeakPath // Loop until we hit a boundary face - PackedBoolList isNewLeakPoint(isLeakPoint); + bitSet isNewLeakPoint(isLeakPoint); while (mesh.isInternalFace(frontFaceI)) { if (isBlockedFace.size() && isBlockedFace[frontFaceI]) @@ -780,8 +780,8 @@ bool Foam::shortestPathSet::genSingleLeakPath Foam::label Foam::shortestPathSet::erodeFaceSet ( const polyMesh& mesh, - const PackedBoolList& isBlockedPoint, - PackedBoolList& isLeakFace + const bitSet& isBlockedPoint, + bitSet& isLeakFace ) const { if @@ -805,7 +805,7 @@ Foam::label Foam::shortestPathSet::erodeFaceSet while (true) { - PackedBoolList newIsLeakFace(isLeakFace); + bitSet newIsLeakFace(isLeakFace); // Get number of edges @@ -827,7 +827,7 @@ Foam::label Foam::shortestPathSet::erodeFaceSet // Match pp edges to coupled edges labelList patchEdges; labelList coupledEdges; - PackedBoolList sameEdgeOrientation; + bitSet sameEdgeOrientation; PatchTools::matchEdges ( pp, @@ -913,7 +913,7 @@ void Foam::shortestPathSet::genSamples const bool addLeakPath, const label maxIter, const polyMesh& mesh, - const PackedBoolList& isBoundaryFace, + const bitSet& isBoundaryFace, const point& insidePoint, const label insideCelli, const point& outsidePoint, @@ -923,9 +923,9 @@ void Foam::shortestPathSet::genSamples DynamicList