Changeset 3920 in Sophya for trunk/AddOn/TAcq/brviscalc.cc


Ignore:
Timestamp:
Dec 3, 2010, 4:51:54 AM (15 years ago)
Author:
ansari
Message:

Correction bug ds MonitorProc et ajout controle remplissage DataTable des visibiltes par BRVisibilityCalculator , cmv+Reza 02/12/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/brviscalc.cc

    r3915 r3920  
    4545  visdt_.AddFloatColumn("vre");
    4646  visdt_.AddFloatColumn("vim");
     47  ActivateVisDTable();
    4748
    4849  if (nmean_ < 1)  nmean_=memgr_.NbPaquets();
     
    6566{
    6667  if (totnbpaq_<1)   return;
    67   cout << " ~BRVisibilityCalculator - Visibility Datatable : " << endl;
    68   cout << visdt_;
     68  if (fgvisdt_) {
     69    cout << " ~BRVisibilityCalculator - Visibility Datatable : " << endl;
     70    cout << visdt_;
    6971 
    70   string filename;
    71   filename = outpath_+"visdt.ppf";
    72   if (nbcalc_>1) {
    73     char sbuff[32];
    74     sprintf(sbuff,"visdt_%d.ppf",(int)calcid_);
    75     filename = outpath_+sbuff;
    76   }
    77   POutPersist po(filename);
    78   po << visdt_;
    79   if (calcid_ == 0) {
    80    
     72    string filename;
     73    filename = outpath_+"visdt.ppf";
     74    if (nbcalc_>1) {
     75      char sbuff[32];
     76      sprintf(sbuff,"visdt_%d.ppf",(int)calcid_);
     77      filename = outpath_+sbuff;
     78    }
     79    POutPersist po(filename);
     80    po << visdt_;
     81  }
     82  if (calcid_ == 0) {   
    8183    if (fgcktt_) {
    8284      cout << " BRVisibilityCalculator -  Check TimeTag done: TotNPaqProc= " << totnbpaq_ << endl;
     
    306308               << totnbpaq_ << " TotMegaFLOP=" << (uint_8)TotNbMegaFLOP() << " -> VisibMtx in " << flnm << endl;
    307309
    308           FillVisibTable(moyfc_, moytt_);
     310          if (fgvisdt_) FillVisibTable(moyfc_, moytt_);
    309311          numfile_++;
    310312        }
     
    393395      cout << numfile_ << "-BRVisCalc[" << calcid_ << "/" << nbcalc_ << "]::Process() NPaqProc="
    394396           << totnbpaq_ << " TotMegaFLOP=" << (uint_8)TotNbMegaFLOP() << " -> VisibMtx in " << flnm << endl;
    395       FillVisibTable(moyfc_, moytt_);
     397      if (fgvisdt_) FillVisibTable(moyfc_, moytt_);
    396398      numfile_++;
    397399    }
     
    612614}
    613615/* --Methode-- */
     616void BRVisCalcGroup::ActivateVisDTable(bool fgfdt)
     617{
     618  for(size_t i=0; i<viscalcp_.size(); i++)
     619    viscalcp_[i]->ActivateVisDTable(fgfdt);
     620}
     621/* --Methode-- */
    614622void BRVisCalcGroup::start()
    615623{
Note: See TracChangeset for help on using the changeset viewer.