Changeset 2506 in Sophya for trunk/SophyaLib/NTools/cspline.cc


Ignore:
Timestamp:
Mar 15, 2004, 5:46:56 PM (22 years ago)
Author:
ansari
Message:

Remplacement THROW par throw - Reza 15/03/2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/cspline.cc

    r2322 r2506  
    4444if( x != NULL && y != NULL) ComputeCSpline();
    4545
    46 END_CONSTRUCTOR
    4746}
    4847
     
    5655  , YP1(yp1), YPn(ypn), X(NULL), Y(NULL), Y2(NULL), tmp(NULL)
    5756{
    58 END_CONSTRUCTOR
    5957}
    6058
     
    125123      printf("CSpline::SetNewTab_Erreur: X[%d]>=X[%d] (%g>=%g)\n"
    126124            ,i-1,i,X[i-1],X[i]);
    127       THROW(inconsistentErr);
     125      throw ParmError(PExcLongMessage(""));
    128126    }
    129127  }
     
    219217if( corrupt_Y2 ) {
    220218  cout<<"CSpline::CSplineInt: calcul des coef du spline corrupted"<<endl;
    221   THROW(inconsistentErr);
     219  throw ParmError(PExcLongMessage(""));
    222220}
    223221
     
    234232  cout<<"CSpline::CSplineInt: pout khi="<<khi<<" klo="<<klo
    235233      <<" memes valeurs de X[]: "<<X[khi]<<endl;
    236   THROW(inconsistentErr);
     234  throw ParmError(PExcLongMessage(""));
    237235}
    238236
     
    293291if( x1 != NULL && x2 != NULL && y != NULL) ComputeCSpline();
    294292
    295 END_CONSTRUCTOR
    296293}
    297294
     
    306303  , Nel_S(0), S(NULL), Sint(NULL), tmp(NULL)
    307304{
    308 END_CONSTRUCTOR
    309305}
    310306
     
    391387      { printf("CSpline::SetNewTab_Erreur: X1[%d]>=X1[%d] (%g>=%g)\n"
    392388              ,i-1,i,X1[i-1],X1[i]);
    393         THROW(inconsistentErr); }
     389        throw ParmError(PExcLongMessage("")); }
    394390    for(int j=0;j<Nel2;j++) Ytmp[j*Nel1+i]  = y[j*Nel1+ind[i]];
    395391  }
     
    402398      { printf("CSpline::SetNewTab_Erreur: X2[%d]>=X2[%d] (%g>=%g)\n"
    403399              ,j-1,j,X2[j-1],X2[j]);
    404         THROW(inconsistentErr); }
     400        throw ParmError(PExcLongMessage("")); }
    405401    for(int i=0;i<Nel1;i++) Y[j*Nel1+i] = Ytmp[j*Nel1+ind[i]];
    406402  }
Note: See TracChangeset for help on using the changeset viewer.