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
Jennifer Ryan
Nektar
Commits
e63257ef
Commit
e63257ef
authored
Feb 26, 2017
by
mike turner
Browse files
remove commented out variables
parent
ef5a6be8
Changes
3
Hide whitespace changes
Inline
Side-by-side
library/NekMeshUtils/Optimisation/BGFS-B.cpp
View file @
e63257ef
...
...
@@ -92,15 +92,12 @@ bool BGFSUpdate(OptiObjSharedPtr opti, DNekMat &J, DNekMat &B, DNekMat &H)
Array
<
OneD
,
NekDouble
>
xci
(
xi
.
num_elements
());
//bool hitbounded = false;
for
(
int
i
=
0
;
i
<
xci
.
num_elements
();
i
++
)
{
if
(
xi
[
i
]
+
d
(
i
,
0
)
<
li
[
i
])
{
xci
[
i
]
=
li
[
i
];
Fset
.
erase
(
i
);
//hitbounded = true;
continue
;
}
else
...
...
@@ -112,7 +109,6 @@ bool BGFSUpdate(OptiObjSharedPtr opti, DNekMat &J, DNekMat &B, DNekMat &H)
{
xci
[
i
]
=
ui
[
i
];
Fset
.
erase
(
i
);
//hitbounded = true;
continue
;
}
else
...
...
@@ -173,22 +169,6 @@ bool BGFSUpdate(OptiObjSharedPtr opti, DNekMat &J, DNekMat &B, DNekMat &H)
}
}
/*if(hitbounded)
{
cout << endl << endl << Z << endl << endl;
cout << rg << endl << endl;
cout << du << endl << endl;
cout << alpha << endl << endl;
cout << grad << endl << endl;
for(int i = 0; i < xi.num_elements(); i++)
{
cout << xci[i] << " " << xibar[i] << endl;
}
exit(-1);
}*/
Vmath
::
Vsub
(
xci
.
num_elements
(),
&
xibar
[
0
],
1
,
&
xi
[
0
],
1
,
&
dk
[
0
],
1
);
NekDouble
c
=
0.0
;
...
...
library/NekMeshUtils/SurfaceMeshing/HOSurfaceMesh.cpp
View file @
e63257ef
...
...
@@ -124,11 +124,8 @@ void HOSurfaceMesh::Process()
FaceSharedPtr
f
=
m_mesh
->
m_element
[
2
][
i
]
->
GetFaceLink
();
//bool d2 = false;
if
(
!
f
)
{
//d2 = true;
f
=
boost
::
shared_ptr
<
Face
>
(
new
Face
(
m_mesh
->
m_element
[
2
][
i
]
->
GetVertexList
(),
vector
<
NodeSharedPtr
>
(),
m_mesh
->
m_element
[
2
][
i
]
->
GetEdgeList
(),
...
...
library/NekMeshUtils/Triangle/Triangle.cpp
View file @
e63257ef
...
...
@@ -4684,7 +4684,6 @@ enum insertvertexresult DelaunayTriangle::insertvertex(struct mesh *m,
vertex
leftvertex
,
rightvertex
,
botvertex
,
topvertex
,
farvertex
;
vertex
segmentorg
,
segmentdest
;
double
attrib
;
//double area;
enum
insertvertexresult
success
;
enum
locateresult
intersect
;
int
doflip
;
...
...
@@ -6585,7 +6584,6 @@ void DelaunayTriangle::segmentintersection(struct mesh *m,
vertex
leftvertex
,
rightvertex
;
vertex
newvertex
;
enum
insertvertexresult
success
;
//enum finddirectionresult collinear;
double
ex
,
ey
;
double
tx
,
ty
;
double
etx
,
ety
;
...
...
@@ -7769,8 +7767,7 @@ void DelaunayTriangle::carveholes(struct mesh *m,
double
*
regionlist
,
int
regions
)
{
struct
otri
searchtri
;
//struct otri triangleloop;
struct
otri
searchtri
struct
otri
*
regiontris
;
triangle
**
holetri
;
triangle
**
regiontri
;
...
...
@@ -7940,7 +7937,6 @@ void DelaunayTriangle::carveholes(struct mesh *m,
void
DelaunayTriangle
::
tallyencs
(
struct
mesh
*
m
,
struct
behavior
*
b
)
{
struct
osub
subsegloop
;
//int dummy;
traversalinit
(
&
m
->
subsegs
);
subsegloop
.
ssorient
=
0
;
...
...
@@ -7998,7 +7994,6 @@ void DelaunayTriangle::splitencsegs(struct mesh *m, struct behavior *b, int trif
double
split
;
double
multiplier
,
divisor
;
int
acuteorg
,
acuteorg2
,
acutedest
,
acutedest2
;
//int dummy;
int
i
;
triangle
ptr
;
/* Temporary variable used by stpivot(). */
subseg
sptr
;
/* Temporary variable used by snext(). */
...
...
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