Changeset 12878 for issm/branches/trunk-jpl-damage/src/c/modules/PointCloudFindNeighborsx/PointCloudFindNeighborsxt.cpp
- Timestamp:
- 08/02/12 17:13:12 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage
- Property svn:mergeinfo changed
-
issm/branches/trunk-jpl-damage/src/c/modules/PointCloudFindNeighborsx/PointCloudFindNeighborsxt.cpp
r11708 r12878 39 39 40 40 /*allocate: */ 41 already= (bool*)xcalloc(nods,sizeof(bool));41 already=xNewZeroInit<bool>(nods); 42 42 43 43 /*partition loop across threads: */ … … 45 45 46 46 /*Loop over the nodes*/ 47 if (my_thread==0) printf(" loop progress: %5.2lf %%",0.0);48 49 47 for (i=i0;i<i1;i++){ 50 48 51 49 /*display current iteration*/ 52 if (my_thread==0 && fmod((double)i,(double)100)==0) printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nods*100*num_threads); 50 if (my_thread==0 && fmod((double)i,(double)100)==0) 51 _printString_("\r loop progress: "<<setw(6)<<setprecision(2)<<double(i-i0)/double(i1-i0)*100<<"%"); 53 52 54 53 distance=mindistance+100; //make sure initialization respects min distance criterion. … … 70 69 } 71 70 } 72 if (my_thread==0) printf("\b\b\b\b\b\b\b%5.2lf %%\n",100.0); 71 if (my_thread==0) 72 _printLine_("\r loop progress: "<<fixed<<setw(6)<<setprecision(2)<<100.<<"%"); 73 73 74 74 /*Free ressources:*/ 75 x free((void**)&already);75 xDelete<bool>(already); 76 76 77 77 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.