Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
787e9fbf
Commit
787e9fbf
authored
Jan 08, 2017
by
Michael Turner
Browse files
tweak octree tolerances
parent
953b7fb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/NekMeshUtils/Octree/Octree.cpp
View file @
787e9fbf
...
@@ -478,7 +478,7 @@ void Octree::SmoothSurfaceOctants()
...
@@ -478,7 +478,7 @@ void Octree::SmoothSurfaceOctants()
{
{
if
(
it
->
second
[
j
]
->
IsDeltaKnown
()
&&
if
(
it
->
second
[
j
]
->
IsDeltaKnown
()
&&
it
->
second
[
j
]
->
GetDelta
()
<
oct
->
GetDelta
()
&&
it
->
second
[
j
]
->
GetDelta
()
<
oct
->
GetDelta
()
&&
ddx
(
oct
,
it
->
second
[
j
])
>
0.
1
)
ddx
(
oct
,
it
->
second
[
j
])
>
0.
2
)
{
{
check
.
push_back
(
it
->
second
[
j
]);
check
.
push_back
(
it
->
second
[
j
]);
}
}
...
@@ -495,9 +495,9 @@ void Octree::SmoothSurfaceOctants()
...
@@ -495,9 +495,9 @@ void Octree::SmoothSurfaceOctants()
{
{
NekDouble
r
=
oct
->
Distance
(
check
[
j
]);
NekDouble
r
=
oct
->
Distance
(
check
[
j
]);
if
(
0.
0
99
*
r
+
check
[
j
]
->
GetDelta
()
<
deltaSM
)
if
(
0.
1
99
*
r
+
check
[
j
]
->
GetDelta
()
<
deltaSM
)
{
{
deltaSM
=
0.
0
99
*
r
+
check
[
j
]
->
GetDelta
();
deltaSM
=
0.
1
99
*
r
+
check
[
j
]
->
GetDelta
();
}
}
}
}
oct
->
SetDelta
(
deltaSM
);
oct
->
SetDelta
(
deltaSM
);
...
@@ -548,9 +548,9 @@ void Octree::PropagateDomain()
...
@@ -548,9 +548,9 @@ void Octree::PropagateDomain()
{
{
NekDouble
r
=
oct
->
Distance
(
known
[
j
]);
NekDouble
r
=
oct
->
Distance
(
known
[
j
]);
if
(
0.1
4
*
r
+
known
[
j
]
->
GetDelta
()
<
m_maxDelta
)
if
(
0.1
99
*
r
+
known
[
j
]
->
GetDelta
()
<
m_maxDelta
)
{
{
deltaPrime
.
push_back
(
0.1
4
*
r
+
deltaPrime
.
push_back
(
0.1
99
*
r
+
known
[
j
]
->
GetDelta
());
known
[
j
]
->
GetDelta
());
}
}
else
else
...
...
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