Changeset 1629 in Sophya for trunk/ArchTOIPipe/TestPipes
- Timestamp:
- Aug 8, 2001, 12:01:41 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/TestPipes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/simtst.cc
r1541 r1629 87 87 int istart = 0; 88 88 int iend = 0; 89 int_8 dns_print = 1000;90 int dns_print_fac = 50;91 int nbmax_dns_print = 2;92 89 93 90 double range_min = -16000; … … 207 204 // mgr->setRequestedSample(11680920,11710584); 208 205 // mgr->setRequestedSample(104121000, 104946120); 209 if (fgsetstart) {206 if (fgsetstart) 210 207 mgr->setRequestedSample(istart, iend); 211 dns_print = (iend-istart)/dns_print_fac; 212 if (dns_print < 1000) dns_print = 1000; 213 nbmax_dns_print = (iend-istart)/dns_print; 214 } 208 215 209 // FITSTOIReader r("/data/Archeops/bolo11.fits); 216 210 FITSTOIReader r(infile); … … 397 391 398 392 // ------------------- Impression continu de stat ------------------------ 399 int_8 nb_dns_print = 0; 400 int nb_sleep = 0; 401 int_8 last_sample_count = 0; 402 int_8 processed_samples = 0; 403 int_8 total_sample_count = dns_print*nbmax_dns_print; 404 bool alldone = false; 405 while (!alldone) { 406 processed_samples = filt.ProcessedSampleCount(); 407 if ( (processed_samples-last_sample_count > dns_print) || 408 (processed_samples > total_sample_count-10) ) { 409 last_sample_count = processed_samples; 410 if (nb_dns_print == 0) cout << "\n"; 411 nb_dns_print++; 412 cout << ">>> simtst/Info: ProcessedSampleCount()= " << last_sample_count 413 << " Frac done = " << processed_samples*100/total_sample_count << " %" << endl; 414 if (last_sample_count > total_sample_count-10) alldone = true; 415 nb_sleep = 0; 416 } 417 else if ((nb_sleep+1)%5 == 0) 418 cout << "> simtst/Info: ProcSamples()= " << processed_samples 419 << " Done = " << " %" << processed_samples*100/total_sample_count 420 << " NbSleep(1) = " << nb_sleep << endl; 421 422 sleep(1); nb_sleep++; 423 } 424 393 ProcSampleCounter<SimpleFilter> stats(filt); 394 stats.InfoMessage() = "simtst/Info"; 395 stats.PrintStats(); 425 396 // ----------------------------------------------------------------------- 426 397 -
trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
r1537 r1629 154 154 //-------------------------------------------------------------------- 155 155 156 156 157 // FITS reader 157 158 FITSTOIReader rfitsb(fitsin_bolo); … … 222 223 } 223 224 225 // Affichage de l'avancement des TOIProcessors 226 ProcSampleCounter<FITSTOIReader> stats(rfitsb); 227 stats.InfoMessage() = "tsttoi2map/Info"; 228 stats.PrintStats(); 229 230 // Fin des traitements des TOIProcessors 224 231 mgr->joinAll(); 225 232 PrtTim("End threads"); 233 226 234 227 235 // Ecriture de la sphere Healpix sur fits … … 240 248 241 249 // Nettoyage 250 cout << "tsttoi2map: cleanup " << endl; 242 251 delete sph; 243 252 if(wsph) delete wsph; 253 cout << "tsttoi2map: ----------- End of job -------------- " << endl; 244 254 245 255 //--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.