Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1bcb454f
Commit
1bcb454f
authored
Jul 05, 2017
by
Mark OLESEN
Browse files
STYLE: hash constructors with power-of-two
- use 1024 instead of 1000 since it will be changed internally to 1024 anyhow.
parent
efc21270
Changes
3
Hide whitespace changes
Inline
Side-by-side
applications/test/PackedList2/Test-PackedList2.C
View file @
1bcb454f
...
...
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
std
::
vector
<
bool
>
stlVector
(
n
,
true
);
labelHashSet
emptyHash
;
labelHashSet
fullHash
(
10
00
);
labelHashSet
fullHash
(
10
24
);
for
(
label
i
=
0
;
i
<
n
;
i
++
)
{
fullHash
.
insert
(
i
);
...
...
applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C
View file @
1bcb454f
...
...
@@ -393,7 +393,7 @@ void extractSurface
// Collect sizes. Hash on names to handle local-only patches (e.g.
// processor patches)
HashTable
<
label
>
patchSize
(
10
00
);
HashTable
<
label
>
patchSize
(
10
24
);
label
nFaces
=
0
;
forAllConstIter
(
labelHashSet
,
includePatches
,
iter
)
{
...
...
@@ -405,7 +405,7 @@ void extractSurface
// Allocate zone/patch for all patches
HashTable
<
label
>
compactZoneID
(
10
00
);
HashTable
<
label
>
compactZoneID
(
10
24
);
forAllConstIter
(
HashTable
<
label
>
,
patchSize
,
iter
)
{
label
sz
=
compactZoneID
.
size
();
...
...
applications/utilities/surface/surfaceMeshTriangulate/surfaceMeshTriangulate.C
View file @
1bcb454f
...
...
@@ -230,7 +230,7 @@ int main(int argc, char *argv[])
// From (name of) patch to compact 'zone' index
HashTable
<
label
>
compactZoneID
(
10
00
);
HashTable
<
label
>
compactZoneID
(
10
24
);
// 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
(
10
00
);
HashTable
<
label
>
patchSize
(
10
24
);
label
nFaces
=
0
;
forAllConstIter
(
labelHashSet
,
includePatches
,
iter
)
{
...
...
@@ -247,7 +247,7 @@ int main(int argc, char *argv[])
nFaces
+=
pp
.
size
();
}
HashTable
<
label
>
zoneSize
(
10
00
);
HashTable
<
label
>
zoneSize
(
10
24
);
forAllConstIter
(
labelHashSet
,
includeFaceZones
,
iter
)
{
const
faceZone
&
pp
=
fzm
[
iter
.
key
()];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment