Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Community
integration-cfmesh
Commits
1eba5582
Commit
1eba5582
authored
Sep 18, 2014
by
Franjo
Browse files
Minor modification removed n^2 behaviour
parent
30d5ead8
Changes
1
Hide whitespace changes
Inline
Side-by-side
meshLibrary/utilities/octrees/meshOctree/meshOctreeAddressing/meshOctreeAddressingCreation.C
View file @
1eba5582
...
@@ -364,7 +364,7 @@ void meshOctreeAddressing::findUsedBoxes() const
...
@@ -364,7 +364,7 @@ void meshOctreeAddressing::findUsedBoxes() const
else
else
{
{
wordHashSet
patchesToRemoveCopy
wordHashSet
patchesToRemoveCopy
(
(
meshDict_
.
lookup
(
"removeCellsIntersectingPatches"
)
meshDict_
.
lookup
(
"removeCellsIntersectingPatches"
)
);
);
patchesToRemove
.
transfer
(
patchesToRemoveCopy
);
patchesToRemove
.
transfer
(
patchesToRemoveCopy
);
...
@@ -376,15 +376,15 @@ void meshOctreeAddressing::findUsedBoxes() const
...
@@ -376,15 +376,15 @@ void meshOctreeAddressing::findUsedBoxes() const
//- remove facets in patches
//- remove facets in patches
forAllConstIter
(
HashSet
<
word
>
,
patchesToRemove
,
it
)
forAllConstIter
(
HashSet
<
word
>
,
patchesToRemove
,
it
)
{
{
labelList
matchedPatches
=
ts
.
findPatches
(
it
.
key
());
const
labelList
matchedPatches
=
ts
.
findPatches
(
it
.
key
());
boolList
activePatch
(
ts
.
patches
().
size
(),
false
);
forAll
(
matchedPatches
,
ptchI
)
activePatch
[
matchedPatches
[
ptchI
]]
=
true
;
forAll
(
matchedPatches
,
match
I
)
forAll
(
ts
,
tri
I
)
{
{
forAll
(
ts
,
triI
)
if
(
activePatch
[
ts
[
triI
].
region
()]
)
{
removeFacets
[
triI
]
=
true
;
if
(
ts
[
triI
].
region
()
==
matchedPatches
[
matchI
])
removeFacets
[
triI
]
=
true
;
}
}
}
}
}
...
@@ -446,15 +446,15 @@ void meshOctreeAddressing::findUsedBoxes() const
...
@@ -446,15 +446,15 @@ void meshOctreeAddressing::findUsedBoxes() const
//- keep facets in patches
//- keep facets in patches
forAllConstIter
(
HashSet
<
word
>
,
patchesToKeep
,
it
)
forAllConstIter
(
HashSet
<
word
>
,
patchesToKeep
,
it
)
{
{
labelList
matchedPatches
=
ts
.
findPatches
(
it
.
key
());
const
labelList
matchedPatches
=
ts
.
findPatches
(
it
.
key
());
boolList
activePatch
(
ts
.
patches
().
size
(),
false
);
forAll
(
matchedPatches
,
ptchI
)
activePatch
[
matchedPatches
[
ptchI
]]
=
true
;
forAll
(
matchedPatches
,
match
I
)
forAll
(
ts
,
tri
I
)
{
{
forAll
(
ts
,
triI
)
if
(
activePatch
[
ts
[
triI
].
region
()]
)
{
keepFacets
[
triI
]
=
true
;
if
(
ts
[
triI
].
region
()
==
matchedPatches
[
matchI
])
keepFacets
[
triI
]
=
true
;
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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