Changeset 3587 in Sophya for trunk/SophyaLib/NTools
- Timestamp:
- Mar 5, 2009, 2:26:38 PM (17 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/dates.cc
r3572 r3587 112 112 113 113 // Nous sommes dans un mois-frontiere 114 DBASSERT(dt.MM == dstStopMonth || dt.MM == dstStartMonth);114 ASSERT(dt.MM == dstStopMonth || dt.MM == dstStartMonth); 115 115 116 116 if (dt.MM == dstStartMonth) { … … 493 493 494 494 if (tOpt == kLocalTime) { 495 DBASSERT(timeZone != NULL);495 ASSERT(timeZone != NULL); 496 496 operator -= (timeZone->gmtOffset/24.0); 497 497 if (timeZone->IsDst(*this)) … … 511 511 Date dt(*this); 512 512 if (tOpt == kLocalTime && !UndetTime()) { 513 DBASSERT(timeZone != NULL);513 ASSERT(timeZone != NULL); 514 514 dt += timeZone->GetOffset(*this)/24.0; 515 515 } … … 535 535 Date dt(*this); 536 536 if (tOpt == kLocalTime && !UndetTime()) { 537 DBASSERT(timeZone != NULL);537 ASSERT(timeZone != NULL); 538 538 dt += timeZone->GetOffset(*this)/24.0; 539 539 } … … 569 569 Date dt(*this); 570 570 if (tOpt == kLocalTime) { 571 DBASSERT(timeZone != NULL);571 ASSERT(timeZone != NULL); 572 572 dt += timeZone->GetOffset(*this)/24.0; 573 573 } … … 628 628 double t = GetDays(); 629 629 if (tOpt == kLocalTime && hh >=0) { 630 DBASSERT(timeZone != NULL);630 ASSERT(timeZone != NULL); 631 631 t += timeZone->GetOffset(*this)/24.0; 632 632 } -
trunk/SophyaLib/NTools/generalfit.cc
r3572 r3587 161 161 ASSERT(mNPar<1000000); 162 162 163 TRY { 164 General_Init(); 165 } CATCHALL { 166 THROW_SAME; 167 } ENDTRY 168 163 General_Init(); 169 164 } 170 165 … … 202 197 ASSERT( mNPar < 1000000 ); 203 198 204 TRY { 205 General_Init(); 206 } CATCHALL { 207 THROW_SAME; 208 } ENDTRY 209 199 General_Init(); 210 200 } 211 201 … … 242 232 GetIntEnv("PDEBUG_GENERALFIT",debugLevel); 243 233 244 TRY{234 try { 245 235 fixParam = new unsigned short int[mNPar]; 246 236 boundParam = new unsigned short int[mNPar]; 247 237 nameParam = new string[mNPar]; 248 } CATCHALL { 238 } 239 catch (...) { 249 240 cout<<"GeneralFit::GeneralFit Impossible d'allouer l'espace"<<endl; 250 THROW_SAME;251 } ENDTRY 241 throw AllocationError("GeneralFit::GeneralFit() error allocating with new ..."); 242 } 252 243 253 244 Param = (double) 0.; … … 910 901 911 902 // Calcul de la matrice des covariances 912 #ifdef __mac__ 913 COVAR = SimpleMatrixOperation<r_8>::Inverse(ATGA); /* $CHECK$ Reza 10/3/2000 */ 914 #else 915 TRY { 903 try { 916 904 COVAR = SimpleMatrixOperation<r_8>::Inverse(ATGA); /* $CHECK$ Reza 10/3/2000 */ 917 } CATCHALL { 905 } 906 catch (MathExc& exc) { 918 907 if(debugLevel>0) { 908 cout<<"GeneralFit::Fit()/Exception:" << exc.what() << endl; 919 909 cout<<"Pb inversion matrice ATGA:"<<endl; 920 910 cout<<ATGA; 921 911 } 922 912 return(-10); 923 } ENDTRY 924 #endif 913 } 925 914 926 915 if (debugLevel >= 3) { -
trunk/SophyaLib/NTools/integ.cc
r3409 r3587 80 80 mXMin(xmin), mXMax(xmax) 81 81 { 82 DBASSERT(gff->NVar() == 1);82 ASSERT(gff->NVar() == 1); 83 83 } 84 84 … … 94 94 mXMin(0), mXMax(1) 95 95 { 96 DBASSERT(gff->NVar() == 1);96 ASSERT(gff->NVar() == 1); 97 97 } 98 98 … … 140 140 Integrator::ReqPrec(double p) 141 141 { 142 DBASSERT( !"Pas encore implemente !");142 ASSERT( !"Pas encore implemente !"); 143 143 mReqPrec = p; 144 144 mDX = mNStep = -1; … … 191 191 mGFFParm = par; 192 192 mFunc = NULL; 193 DBASSERT(gff->NVar() == 1);193 ASSERT(gff->NVar() == 1); 194 194 FuncChanged(); 195 195 return *this; … … 199 199 Integrator::FVal(double x) const 200 200 { 201 DBASSERT( mFunc || mClFun || (mGFF && mGFFParm) );201 ASSERT( mFunc || mClFun || (mGFF && mGFFParm) ); 202 202 if (mFunc) return mFunc(x); 203 203 else return mClFun ? (*mClFun)(x) : mGFF->Value(&x, mGFFParm);
Note:
See TracChangeset
for help on using the changeset viewer.