STYLE: hash constructors with power-of-two

- use 1024 instead of 1000 since it will be changed internally to 1024 anyhow.
This commit is contained in:
Mark Olesen
2017-07-05 10:46:50 +02:00
parent efc21270ea
commit 1bcb454f6d
3 changed files with 6 additions and 6 deletions

View File

@ -230,7 +230,7 @@ int main(int argc, char *argv[])
// From (name of) patch to compact 'zone' index
HashTable<label> compactZoneID(1000);
HashTable<label> compactZoneID(1024);
// Mesh face and compact zone indx
DynamicList<label> faceLabels;
DynamicList<label> compactZones;
@ -238,7 +238,7 @@ int main(int argc, char *argv[])
{
// Collect sizes. Hash on names to handle local-only patches (e.g.
// processor patches)
HashTable<label> patchSize(1000);
HashTable<label> patchSize(1024);
label nFaces = 0;
forAllConstIter(labelHashSet, includePatches, iter)
{
@ -247,7 +247,7 @@ int main(int argc, char *argv[])
nFaces += pp.size();
}
HashTable<label> zoneSize(1000);
HashTable<label> zoneSize(1024);
forAllConstIter(labelHashSet, includeFaceZones, iter)
{
const faceZone& pp = fzm[iter.key()];