Changeset 3724 in Sophya for trunk/AddOn/TAcq/branap.cc


Ignore:
Timestamp:
Dec 29, 2009, 12:34:19 AM (16 years ago)
Author:
ansari
Message:

Implementation possibilite calcul visibilites avec des threads en parallele, Reza 29/12/2009

File:
1 edited

Legend:

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

    r3707 r3724  
    2626  npaqinzone_=npaqz;
    2727  prtlevel_=0;
     28  nthreads_=1;
    2829}
    2930
     
    7071      ka+=2;
    7172    }
     73    else if (strcmp(arg[ka],"-nthr")==0) {
     74      nthreads_=atoi(arg[ka+1]);
     75      ka+=2;
     76    }
    7277    else if (strcmp(arg[ka],"-in")==0) {
    7378      if ((narg-ka)<4)  {
     
    108113  cout << " --- BRAnaParam : Reading/Processing BAORadio FITS files parameters " << endl;
    109114  cout << " Usage:  prgname [-act ACT] [-out OutPath] [-nmean NMean] [-zones NZones,nPaqinZone] \n"
    110        << "                 [-nbloc NBloc] [-freq NumFreqMin,NumFreqMax,NBinFreq] [-prtlev lev] \n"
     115       << "                 [-nbloc NBloc] [-freq NumFreqMin,NumFreqMax,NBinFreq] \n"
     116       << "                 [-prtlev lev] [-nthr n] \n"
    111117       << "         -in Imin,Imax,Istep InPath FiberList [InPath2 FiberList2 InPath3 FiberList3 ...] \n" << endl;
    112118  if (fgshort) {
     
    123129       << " -freq NumFreqMin,NumFreqMax,NBinFreq : Frequency zone and number of bins \n"
    124130       << " -prtlev lev : Print level (0,1,2...) \n"
     131       << " -nthr n : number of threads for parallel execution (default=1) \n"
    125132       << " -in : input files/directory definition : \n"
    126133       << "       Imin,Imax,Istep: fits files signalII.fits Imin<=II<=Imax Istep=increment \n"
Note: See TracChangeset for help on using the changeset viewer.