void Foam::extendedCentredCellToCellExtStencil::compact() { boolList isInStencil(map().constructSize(), false); forAll(untransformedElements_, faceI) { // Mark untransformed stencil elements { const labelList& stencilCells = untransformedElements_[faceI]; forAll(stencilCells, i) { isInStencil[stencilCells[i]] = true; } } // Mark transformed stencil elements { const labelList& transformedElements = transformedElements_[faceI]; forAll(transformedElements, i) { isInStencil[transformedElements[i]] = true; } } }
// Per face which elements of the stencil to keep. void Foam::extendedCentredCellToFaceStencil::compact() { boolList isInStencil(map().constructSize(), false); forAll(stencil_, faceI) { const labelList& stencilCells = stencil_[faceI]; forAll(stencilCells, i) { isInStencil[stencilCells[i]] = true; } } mapPtr_().compact(isInStencil, Pstream::msgType()); }