mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: change wordRes to be a List of wordRe instead of a wrapper (issue #259)
- this permits direct storage of a list with additional matcher capabilities - provide wordRes::matcher class for similar behaviour as previously
This commit is contained in:
@ -175,7 +175,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
includePatches = bMesh.patchSet
|
||||
(
|
||||
wordReList(args.lookup("patches")())
|
||||
args.readList<wordRe>("patches")
|
||||
);
|
||||
}
|
||||
else
|
||||
@ -197,12 +197,10 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (args.found("faceZones"))
|
||||
{
|
||||
wordReList zoneNames(args.lookup("faceZones")());
|
||||
wordReList zoneNames(args.readList<wordRe>("faceZones"));
|
||||
const wordList allZoneNames(fzm.names());
|
||||
forAll(zoneNames, i)
|
||||
for (const wordRe& zoneName : zoneNames)
|
||||
{
|
||||
const wordRe& zoneName = zoneNames[i];
|
||||
|
||||
labelList zoneIDs = findStrings(zoneName, allZoneNames);
|
||||
|
||||
forAll(zoneIDs, j)
|
||||
|
||||
Reference in New Issue
Block a user