/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . \*---------------------------------------------------------------------------*/ #include "regionSplit.H" #include "cyclicPolyPatch.H" #include "processorPolyPatch.H" #include "globalIndex.H" #include "syncTools.H" #include "clockValue.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam { defineTypeNameAndDebug(regionSplit, 0); } static constexpr Foam::label UNASSIGNED = -1; static constexpr Foam::label BLOCKED = -2; // * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * // namespace Foam { //- The sizes of a List of containers (eg, labelHashSet) template static labelList containerSizes(const UList& input) { const label len = input.size(); labelList output(len); for (label i = 0; i < len; ++i) { output[i] = input[i].size(); } return output; } } // End namespace Foam // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // void Foam::regionSplit::updateFacePair ( const label face0, const label face1, labelList& faceRegion, DynamicList