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
a5c389ba
Commit
a5c389ba
authored
Dec 29, 2016
by
Michael Turner
Browse files
minor fix to octree sampling
parent
140c69c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/NekMeshUtils/Octree/Octree.cpp
View file @
a5c389ba
...
...
@@ -876,7 +876,7 @@ void Octree::CompileSourcePointList()
Array
<
OneD
,
NekDouble
>
bds
=
curve
->
Bounds
();
int
samples
=
100
;
NekDouble
dt
=
(
bds
[
1
]
-
bds
[
0
])
/
(
samples
+
1
);
for
(
int
j
=
0
;
j
<
samples
;
j
++
)
for
(
int
j
=
1
;
j
<
samples
-
1
;
j
++
)
//dont want first and last point
{
NekDouble
t
=
bds
[
0
]
+
dt
*
j
;
NekDouble
C
=
curve
->
Curvature
(
t
);
...
...
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