Changeset 500 in Sophya for trunk


Ignore:
Timestamp:
Oct 22, 1999, 8:12:02 PM (26 years ago)
Author:
ercodmgr
Message:

Suite portage DPC - OK Reza 22/10/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/servnobjm.cc

    r495 r500  
    185185double xx;
    186186double dx = (xmax-xmin)/np;
     187
     188try {
     189  for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); }
     190}
    187191#ifdef SANS_EVOLPLANCK
    188 TRY {
    189   for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); }
    190 } CATCH(merr) {
     192CATCH(merr) {
    191193  fflush(stdout);
    192194  cout << endl;
     
    198200  } ENDTRY;
    199201#else
    200 try {
    201   for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); }
    202 }
    203202catch ( PException exc ) {
    204203  fflush(stdout);
     
    256255double dy = (ymax-ymin)/npy;
    257256// printf(" -- DBG -- %d %d , %g %g , %g %g \n", npx, npy, xmin, xmax, ymin, ymax);
    258 #ifdef SANS_EVOLPLANCK
    259 TRY {
     257try {
    260258  for(j=0; j<npy; j++) {
    261259    yy = ymin+dy*j;
     
    265263    }
    266264  }
    267 } CATCH(merr) {
     265}
     266#ifdef SANS_EVOLPLANCK
     267CATCH(merr) {
    268268  fflush(stdout);
    269269  cout << endl;
     
    274274  } ENDTRY;
    275275#else
    276 try {
    277   for(j=0; j<npy; j++) {
    278     yy = ymin+dy*j;
    279     for(i=0; i<npx; i++) {
    280       xx = xmin+dx*i;
    281       (*mtx)(j, i) = f(xx, yy);
    282     }
    283   }
    284 }
    285276catch ( PException exc ) {
    286277  fflush(stdout);
     
    864855if (dk <= 0) dk = 1;
    865856
    866 TRY  {
     857try  {
    867858  double* xn;
    868859  int kmax = k2;
     
    877868    }
    878869 }
     870#ifdef SANS_EVOLPLANCK
    879871CATCH(merr) {
    880872  fflush(stdout);
     
    884876  cerr << "Services2NObjMgr::FillNTFrCFile()  Exception :" << merr << es;
    885877  } ENDTRY;
     878#else
     879catch ( PException exc ) {
     880  fflush(stdout);
     881  cout << endl;
     882  cerr << endl;
     883  cerr << "Services2NObjMgr::FillNTFrCFile()  Exception :" << exc.Msg() << endl;
     884}
     885#endif
    886886
    887887if (adel) delete objnt;   // Delete de l'objet NTupleInterface si necessaire
     
    10461046if (k2 > objnt->NbLines()) k2 = objnt->NbLines();
    10471047if (dk <= 0) dk = 1;
    1048 TRY  {
     1048
     1049try  {
    10491050  double* xn;
    10501051  for(k=k1; k<k2; k += dk)    {
     
    10611062    }
    10621063 }
     1064#ifdef SANS_EVOLPLANCK
    10631065CATCH(merr) {
    10641066  fflush(stdout);
     
    10681070  cerr << "Services2NObjMgr::ComputeExpressions()  Exception :" << merr << es;
    10691071  } ENDTRY;
    1070  
     1072#else
     1073catch ( PException exc ) {
     1074  fflush(stdout);
     1075  cout << endl;
     1076  cerr << endl;
     1077  cerr << "Services2NObjMgr::ComputeExpressions()  Exception :" << exc.Msg() << endl;
     1078}
     1079#endif
    10711080
    10721081if (adel) delete objnt;  // Delete de l'objet NTupleInterface si necessaire
Note: See TracChangeset for help on using the changeset viewer.