Changeset 3895 in Sophya for trunk/AddOn/TAcq/vismfib.cc


Ignore:
Timestamp:
Sep 28, 2010, 8:15:29 PM (15 years ago)
Author:
ansari
Message:

correction bugs divers ds calcul visibilites avec plusieurs threads en execution parallele et amelioration prints, Reza 28/09/2010

File:
1 edited

Legend:

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

    r3894 r3895  
    5050    if (rc) return rc;
    5151    par.Print(cout);
    52 
     52    if ((par.action_!="cube3d")&&(par.action_!="vis")&&(par.action_!="viscktt")) {
     53      cout << " !!! visimfib.cc  BAD action = " << par.action_ << " possible values: vis,viscktt,cube3d" << endl;
     54      return 5;
     55    }   
    5356
    5457    cout << " ---------- visimfib.cc Start - Action= " << par.action_ << " ------------- " << endl;
     
    8285
    8386    if (par.action_ == "viscktt")  procg.ActivateTimeTagCheck(par.TotalNPaquets());
    84     BRMeanSpecCalculator procms(mmgr, par.outpath_, par.nmean_);
    8587
    8688    FitsCubeWriter wrt(mmgr, par.outpath_, par.nbloc_);
     
    9092    reader.start();
    9193    if (par.action_ == "cube3d")   wrt.start();
    92     else if (par.action_ == "mspec")   procms.start();
    9394    else  procg.start();
    9495    usleep(200000);
    9596    reader.join();
    9697    if (par.action_ == "cube3d")  wrt.join();
    97     else if (par.action_ == "mspec")  procms.join();
    9898    else procg.join();
    9999    mmgr.Print(cout);
Note: See TracChangeset for help on using the changeset viewer.