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
0765edc9
Commit
0765edc9
authored
Jan 18, 2017
by
Browse files
fix
parent
b0dc56a3
Changes
4
Show whitespace changes
Inline
Side-by-side
library/NekMeshUtils/Octree/Octree.cpp
View file @
0765edc9
...
...
@@ -185,9 +185,21 @@ NekDouble Octree::Query(Array<OneD, NekDouble> loc)
found
=
true
;
}
}
return
min
(
n
->
GetDelta
(),
tmp
);
}
NekDouble
Octree
::
GetMinDelta
()
{
NekDouble
tmp
=
numeric_limits
<
double
>::
max
();
for
(
int
i
=
0
;
i
<
m_lsources
.
size
();
i
++
)
{
tmp
=
min
(
m_lsources
[
i
].
delta
,
tmp
);
}
return
min
(
m_minDelta
,
tmp
);
}
void
Octree
::
WriteOctree
(
string
nm
)
{
MeshSharedPtr
oct
=
boost
::
shared_ptr
<
Mesh
>
(
new
Mesh
());
...
...
library/NekMeshUtils/Octree/Octree.h
View file @
0765edc9
...
...
@@ -132,10 +132,7 @@ public:
*
* @return miminum delta in octree
*/
NekDouble
GetMinDelta
()
{
return
m_minDelta
;
}
NekDouble
GetMinDelta
();
/**
* @brief sets the parameters used for curvature sampling
...
...
library/NekMeshUtils/SurfaceMeshing/FaceMesh.cpp
View file @
0765edc9
...
...
@@ -918,17 +918,17 @@ bool FaceMesh::Validate()
int
numValid
=
0
;
if
(
r
[
0
]
<
triDelta
[
0
]
&&
r
[
2
]
<
triDelta
[
0
])
if
(
r
[
0
]
<
(
triDelta
[
0
]
+
triDelta
[
1
])
/
2.0
*
1.41
)
{
numValid
++
;
}
if
(
r
[
1
]
<
triDelta
[
1
]
&&
r
[
0
]
<
triDelta
[
1
])
if
(
r
[
1
]
<
(
triDelta
[
1
]
+
triDelta
[
2
])
/
2.0
*
1.41
)
{
numValid
++
;
}
if
(
r
[
2
]
<
triDelta
[
2
]
&&
r
[
1
]
<
triDelta
[
2
])
if
(
r
[
2
]
<
(
triDelta
[
2
]
+
triDelta
[
0
])
/
2.0
*
1.41
)
{
numValid
++
;
}
...
...
utilities/NekMesh/Tests/MeshGen/cylinder.mcf
View file @
0765edc9
...
...
@@ -7,9 +7,9 @@
</INFORMATION>
<PARAMETERS>
<P PARAM="MinDelta" VALUE="0.00
5
" />
<P PARAM="MinDelta" VALUE="0.00
3
" />
<P PARAM="MaxDelta" VALUE="0.2" />
<P PARAM="EPS" VALUE="0.0
9
" />
<P PARAM="EPS" VALUE="0.0
5
" />
<P PARAM="Order" VALUE="4" />
</PARAMETERS>
...
...
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