diff --git a/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C b/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C index 7232b683f4..6e3c8f5aec 100644 --- a/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C +++ b/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2016 OpenFOAM Foundation @@ -24,7 +24,7 @@ License along with OpenFOAM. If not, see . Application - surfaceMeshTriangulate + surfaceMeshExtract Group grpSurfaceUtilities @@ -47,6 +47,7 @@ Description #include "argList.H" #include "Time.H" #include "polyMesh.H" +#include "emptyPolyPatch.H" #include "processorPolyPatch.H" #include "ListListOps.H" #include "uindirectPrimitivePatch.H" @@ -58,6 +59,57 @@ using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +labelList getSelectedPatches +( + const polyBoundaryMesh& patches, + const wordRes& whitelist, + const wordRes& blacklist +) +{ + DynamicList