Skip to content
Snippets Groups Projects
Commit d27f2f49 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

remove debug

parent ec90172b
No related branches found
No related tags found
No related merge requests found
......@@ -1008,7 +1008,7 @@ bool BDS_Mesh::swap_edge(BDS_Edge *e, const BDS_SwapEdgeTest &theTest, bool forc
if(e->g && e->g->classif_degree == 1) return false;
const int CHECK1 = 41, CHECK2 = 86;
const int CHECK1 = -1, CHECK2 = -1;
BDS_Point *op[2];
......
......@@ -351,7 +351,6 @@ static void splitEdgePass(GFace *gf, BDS_Mesh &m, double MAXE_, int &nb_split, s
std::vector<BDS_Point*> mids(edges.size());
bool isPeriodic = gf->periodic(0) || gf->periodic(1) ;
bool faceDiscrete = gf->geomType() == GEntity::DiscreteSurface;
for (unsigned int i = 0; i < edges.size(); ++i){
......@@ -521,8 +520,9 @@ void smoothVertexPass(GFace *gf, BDS_Mesh &m, int &nb_smooth, bool q)
void CHECK_STRANGE (const char *c,BDS_Mesh &m){
return;
#if 0
int strange = 0;
for (int i=0;i<m.triangles.size();++i){
for (size_t i=0;i<m.triangles.size();++i){
BDS_Point *pts[4];
m.triangles[i]->getNodes(pts);
double surface_triangle_param(BDS_Point *p1, BDS_Point *p2, BDS_Point *p3);
......@@ -535,7 +535,7 @@ void CHECK_STRANGE (const char *c,BDS_Mesh &m){
if (strange)printf("strange(%s) = %d\n",c,strange);
return;
for (int i=0;i<m.triangles.size();++i){
for (size_t int i=0;i<m.triangles.size();++i){
BDS_Point *pts[4];
m.triangles[i]->getNodes(pts);
if (pts[0] == pts[1] ||
......@@ -556,6 +556,7 @@ void CHECK_STRANGE (const char *c,BDS_Mesh &m){
++itp;
}
printf("strange(%s) = %d\n",c,strange);
#endif
}
void computeNodalSizes(GFace *gf, BDS_Mesh &m,
......@@ -792,7 +793,7 @@ void refineMeshBDS(GFace *gf, BDS_Mesh &m, const int NIT,
double val = BDS_Face_Validity (gf, m.triangles[i]);
invalid += val < 0 ? 1 : 0;
}
double orientation = invalid > m.triangles.size()/2 ? -1.0 : 1.0;
double orientation = invalid > (int)m.triangles.size()/2 ? -1.0 : 1.0;
while (ITER++ <10){
// printf("START\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment