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

fix compile

parent 3cab2d1f
No related branches found
No related tags found
No related merge requests found
...@@ -777,11 +777,8 @@ bool insertVertexB (std::list<edgeXface> &shell, ...@@ -777,11 +777,8 @@ bool insertVertexB (std::list<edgeXface> &shell,
if (fabs(oldVolume - newVolume) < 1.e-12 * oldVolume && !onePointIsTooClose){ if (fabs(oldVolume - newVolume) < 1.e-12 * oldVolume && !onePointIsTooClose){
connectTris(new_cavity.begin(), new_cavity.end(),conn); connectTris(new_cavity.begin(), new_cavity.end(),conn);
// printf("%d %d\n",shell.size(),cavity.size()); // printf("%d %d\n",shell.size(),cavity.size());
// clock_t t1 = clock();
// 30 % of the time is spent here !!! // 30 % of the time is spent here !!!
allTets.insert(newTris, newTris + shell.size()); allTets.insert(newTris, newTris + shell.size());
// clock_t t2 = clock();
// __DT2 += (double)(clock()-t1)/CLOCKS_PER_SEC;
if (activeTets){ if (activeTets){
for (std::list<MTri3*>::iterator i = new_cavity.begin(); i != new_cavity.end(); ++i){ for (std::list<MTri3*>::iterator i = new_cavity.begin(); i != new_cavity.end(); ++i){
int active_edge; int active_edge;
...@@ -1785,9 +1782,11 @@ void bowyerWatsonParallelograms(GFace *gf, ...@@ -1785,9 +1782,11 @@ void bowyerWatsonParallelograms(GFace *gf,
} }
// printf("%d vertices \n",(int)packed.size()); // printf("%d vertices \n",(int)packed.size());
clock_t t2 = clock(); double t2 = Cpu();
double DT = (double)(t2-t1)/CLOCKS_PER_SEC; double DT = (double)(t2-t1);
if (packed.size())printf("points inserted DT %12.5E points per minut : %12.5E %d global searchs %d seachs per insertion\n",DT,60.*packed.size()/DT,N_GLOBAL_SEARCH,N_SEARCH / packed.size()); if (packed.size())
printf("points inserted DT %12.5E points per minute : %12.5E %d global searchs %d searchs per insertion\n",
DT,60.*packed.size()/DT,N_GLOBAL_SEARCH,N_SEARCH / packed.size());
transferDataStructure(gf, AllTris, DATA); transferDataStructure(gf, AllTris, DATA);
backgroundMesh::unset(); backgroundMesh::unset();
#if defined(HAVE_ANN) #if defined(HAVE_ANN)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment