Changeset 1501 in Sophya for trunk/ArchTOIPipe/TestPipes/simtst.cc
- Timestamp:
- May 18, 2001, 4:58:17 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/simtst.cc
r1500 r1501 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 double range_min = -16000; 90 94 double range_max = 16000.; … … 203 207 // mgr->setRequestedSample(11680920,11710584); 204 208 // mgr->setRequestedSample(104121000, 104946120); 205 if (fgsetstart) 209 if (fgsetstart) { 206 210 mgr->setRequestedSample(istart, iend); 207 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 // FITSTOIReader r("/data/Archeops/bolo11.fits); 209 216 FITSTOIReader r(infile); … … 372 379 w.PrintStatus(cout); 373 380 381 382 374 383 PrtTim("starting threads"); 375 384 r.start(); … … 387 396 noop[2].start(); 388 397 398 399 // ------------------- Impression continu de stat ------------------------ 400 int_8 nb_dns_print = 0; 401 int nb_sleep = 0; 402 int_8 last_sample_count = 0; 403 int_8 processed_samples = 0; 404 int_8 total_sample_count = dns_print*nbmax_dns_print; 405 bool alldone = false; 406 while (!alldone) { 407 processed_samples = filt.ProcessedSampleCount(); 408 if ( (processed_samples-last_sample_count > dns_print) || 409 (processed_samples > total_sample_count-10) ) { 410 last_sample_count = processed_samples; 411 if (nb_dns_print == 0) cout << "\n"; 412 nb_dns_print++; 413 cout << ">>> simtst/Info: ProcessedSampleCount()= " << last_sample_count 414 << " Frac done = " << processed_samples*100/total_sample_count << " %" << endl; 415 if (last_sample_count > total_sample_count-10) alldone = true; 416 nb_sleep = 0; 417 } 418 else if ((nb_sleep+1)%5 == 0) 419 cout << "> simtst/Info: ProcSamples()= " << processed_samples 420 << " Done = " << " %" << processed_samples*100/total_sample_count 421 << " NbSleep(1) = " << nb_sleep << endl; 422 423 sleep(1); nb_sleep++; 424 } 425 426 // ----------------------------------------------------------------------- 427 389 428 /* 390 429 for(int jj=0; jj<3; jj++) { … … 395 434 sleep(1); 396 435 } 397 398 436 */ 399 437
Note:
See TracChangeset
for help on using the changeset viewer.