ENH: patch/zone indices with select/ignore combination

STYLE: prefer indices() to patchSet() with warn=false
This commit is contained in:
Mark Olesen
2023-08-01 18:19:53 +02:00
parent db39f196cc
commit 14f7d44ca0
15 changed files with 328 additions and 127 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2017-2022 OpenCFD Ltd.
Copyright (C) 2017-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -237,11 +237,7 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::setPatchFaces()
labelList selected
(
mesh_.boundaryMesh().patchSet
(
selectionNames_,
false // warnNotFound - we do that ourselves
).sortedToc()
mesh_.boundaryMesh().indices(selectionNames_, true) // useGroup
);
DynamicList<label> bad;