Commit e63257ef authored by mike turner's avatar mike turner
Browse files

remove commented out variables

parent ef5a6be8
......@@ -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;
......
......@@ -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(),
......
......@@ -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(). */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment