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


Ignore:
Timestamp:
May 18, 2010, 10:22:10 AM (15 years ago)
Author:
ansari
Message:

Ajout classes / modification pour permettre le calcul des visibilites ave plusieurs objets BRVisibilityCalculator s'executant en parallele, Reza 18/05/2010

File:
1 edited

Legend:

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

    r3774 r3776  
    2626  npaqinzone_=npaqz;
    2727  prtlevel_=0;
     28  nbcalgrp_=1;
    2829  nthreads_=1;
    2930}
     
    7576      ka+=2;
    7677    }
     78    else if (strcmp(arg[ka],"-nvcal")==0) {
     79      nbcalgrp_=atoi(arg[ka+1]);
     80      ka+=2;
     81    }
    7782    else if (strcmp(arg[ka],"-in")==0) {
    7883      if ((narg-ka)<4)  {
     
    114119  cout << " Usage:  prgname [-act ACT] [-out OutPath] [-nmean NMean] [-zones NZones,nPaqinZone] \n"
    115120       << "                 [-nbloc NBloc] [-freq NumFreqMin,NumFreqMax,NBinFreq] \n"
    116        << "                 [-prtlev lev] [-nthr n] \n"
     121       << "                 [-prtlev lev] [-nvcal n] [-nthr n] \n"
    117122       << "         -in Imin,Imax,Istep InPath FiberList [InPath2 FiberList2 InPath3 FiberList3 ...] \n" << endl;
    118123  if (fgshort) {
     
    130135       << " -freq NumFreqMin,NumFreqMax,NBinFreq : Frequency zone and number of bins \n"
    131136       << " -prtlev lev : Print level (0,1,2...) \n"
    132        << " -nthr n : number of threads for parallel execution (default=1) \n"
     137       << " -nvcal n : number of BRVisibilityCalculator objects running in parallel in BRVisCalcGroup  (default=1) \n"
     138       << " -nthr n : number of threads for parallel execution in BRVisibilityCalculator (default=1) \n"
    133139       << " -in : input files/directory definition : \n"
    134140       << "       Imin,Imax,Istep: fits files signalII.fits Imin<=II<=Imax Istep=increment \n"
     
    159165  cout << " PaqSize=" << paqsize_ << "  -  NZones=" << nzones_ << " NPaqZone=" << npaqinzone_
    160166       << " PrtLevel=" << prtlevel_ << endl;
     167  cout << " NbVisibCalculator in Group: " <<  nbcalgrp_ << " with N//threads: " << nthreads_ << endl;
     168
     169
    161170  return os;
    162171}
Note: See TracChangeset for help on using the changeset viewer.