mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add wordRes::matching() method
- returns indices of matching entries.
This commit is contained in:
@ -518,7 +518,8 @@ int main(int argc, char *argv[])
|
||||
patchNames[patchi] = surf.patches()[patchi].name();
|
||||
}
|
||||
|
||||
labelList indices = findStrings(baffleSelect, patchNames);
|
||||
labelList indices(baffleSelect.matching(patchNames));
|
||||
|
||||
for (const label patchId : indices)
|
||||
{
|
||||
surfBaffleRegions[patchId] = true;
|
||||
|
||||
Reference in New Issue
Block a user