Zones: Now derived from PtrListDictionary to provide faster lookup
Now the HashTable underlying PtrListDictionary is used for zone lookup by name which is a lot faster than the linear search method used previously if there are a large number of zones.
This commit is contained in:
@ -148,7 +148,7 @@ int main(int argc, char *argv[])
|
||||
if (args.optionFound("faceZones"))
|
||||
{
|
||||
wordReList zoneNames(args.optionLookup("faceZones")());
|
||||
const wordList allZoneNames(mfz.names());
|
||||
const wordList allZoneNames(mfz.toc());
|
||||
forAll(zoneNames, i)
|
||||
{
|
||||
const wordRe& zoneName = zoneNames[i];
|
||||
|
||||
Reference in New Issue
Block a user