diff --git a/src/meshTools/regionSplit/regionSplit.C b/src/meshTools/regionSplit/regionSplit.C index a901e8d763..eb399eae96 100644 --- a/src/meshTools/regionSplit/regionSplit.C +++ b/src/meshTools/regionSplit/regionSplit.C @@ -2,8 +2,8 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,12 +24,11 @@ License \*---------------------------------------------------------------------------*/ #include "regionSplit.H" -#include "FaceCellWave.H" #include "cyclicPolyPatch.H" #include "processorPolyPatch.H" #include "globalIndex.H" #include "syncTools.H" -#include "minData.H" +#include "clockValue.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -38,176 +37,361 @@ namespace Foam defineTypeNameAndDebug(regionSplit, 0); } +static constexpr Foam::label UNASSIGNED = -1; +static constexpr Foam::label BLOCKED = -2; + + +// * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * // + +namespace Foam +{ + +//- Use key/value from mapper to modify the values for map + +template +static void inplaceMapValue(const Map