Changeset 1501 in Sophya


Ignore:
Timestamp:
May 18, 2001, 4:58:17 PM (24 years ago)
Author:
ansari
Message:

Modifs mineures - Reza 18/5/2001

Location:
trunk/ArchTOIPipe
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/fitstoiwtr.cc

    r1492 r1501  
    6161
    6262  cout << " FITSTOIWriter::run() - Creating output FITS file: "
    63        << name << endl;
     63       << fname << endl;
    6464
    6565  string * coln = new string[ncols];
  • trunk/ArchTOIPipe/Processors/nooppr.cc

    r1489 r1501  
    114114
    115115    cout << " NoOpProcessor::run() - End of processing "
    116          << " NbFFTBlocks= " << totnbblock << endl;
     116         << " TotNbBlocks= " << totnbblock << endl;
    117117  }  // Bloc try
    118118
  • trunk/ArchTOIPipe/TestPipes/simtst.cc

    r1500 r1501  
    8787  int istart = 0;
    8888  int iend = 0;
     89  int_8 dns_print = 1000;
     90  int dns_print_fac = 50;
     91  int nbmax_dns_print = 2;
     92
    8993  double range_min = -16000;
    9094  double range_max = 16000.;
     
    203207    //  mgr->setRequestedSample(11680920,11710584);
    204208    //  mgr->setRequestedSample(104121000, 104946120);
    205     if (fgsetstart)
     209    if (fgsetstart) {
    206210      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    }
    208215    //    FITSTOIReader r("/data/Archeops/bolo11.fits);
    209216    FITSTOIReader r(infile);
     
    372379    w.PrintStatus(cout); 
    373380
     381   
     382
    374383    PrtTim("starting threads");
    375384    r.start();
     
    387396      noop[2].start();
    388397
     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
    389428    /*
    390429    for(int jj=0; jj<3; jj++) {
     
    395434      sleep(1);
    396435    }
    397    
    398436    */
    399437
Note: See TracChangeset for help on using the changeset viewer.