mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: inGroups support for mesh zones
- provisions for alternative groupings of zones - extend indices() for boundary meshes to handle wordRes as well
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2016-2020 OpenCFD Ltd.
|
||||
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -85,11 +85,11 @@ label addPatch
|
||||
pbm
|
||||
)
|
||||
);
|
||||
polyPatch& pp = ppPtr();
|
||||
auto& pp = *ppPtr;
|
||||
|
||||
if (!groupName.empty() && !pp.inGroup(groupName))
|
||||
if (!groupName.empty())
|
||||
{
|
||||
pp.inGroups().append(groupName);
|
||||
pp.inGroups().appendUniq(groupName);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user