Changeset 2034 for branches/c08_branch/source/helike_einsta.cpp
- Timestamp:
- 05/10/08 09:03:02 (2 months ago)
- Files:
-
- branches/c08_branch/source/helike_einsta.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/c08_branch/source/helike_einsta.cpp
r1875 r2034 21 21 #include "helike_einsta.h" 22 22 #include "hydroeinsta.h" 23 24 /*lint -e662 creation of out of bound pointer */25 /*lint -e661 creation of out of bound pointer */26 23 27 24 /* the array of transitions probabilities read from data file. */ … … 353 350 /* This is an extrapolation to the data given above. The fit reproduces 354 351 * the above values to 10% or better. */ 355 A= 7.22E-9*pow( nelem, 9.33);352 A= 7.22E-9*pow((double)nelem, 9.33); 356 353 iso_put_error(ipHE_LIKE,nelem,ipHi,ipLo,IPRAD,0.3f); 357 354 } … … 512 509 else if( lHi>=2 && lLo>=2 && nHi>nLo ) 513 510 { 514 /*lint -e790 integral to float */515 511 Aul = H_Einstein_A(nHi ,lHi , nLo , lLo , nelem); 516 /*lint +e790 integral to float */517 512 ASSERT( Aul > 0.); 518 513 … … 724 719 else if( (nHi > nLo) && ((lHi > 2) || (lLo > 2)) ) 725 720 { 726 /*lint -e790 integral to float */727 721 Aul = H_Einstein_A(nHi ,lHi , nLo , lLo , nelem); 728 /*lint +e790 integral to float */729 722 ASSERT( Aul > 0.); 730 723 } … … 1022 1015 Aul = he_1trans( nelem, Enerwn, n_eff_hi, L_(ipLo)+1, 1023 1016 S_(ipLo), -1, n_eff_lo, L_(ipLo), S_(ipLo), ipLo-3); 1024 Aul *= (2.*L_(ipLo)+3.) * S_(ipLo) / 1025 (4.*(double)N_(ipHi)*(double)N_(ipHi)); 1017 1018 iso.CachedAs[ipISO][nelem][ N_(ipHi)-iso.n_HighestResolved_max[ipISO][nelem]-1 ][ ipLo ][0] = (realnum)Aul; 1019 1020 Aul *= (2.*L_(ipLo)+3.) * S_(ipLo) / (4.*(double)N_(ipHi)*(double)N_(ipHi)); 1021 1026 1022 if( L_(ipLo) != 0 ) 1027 1023 { … … 1029 1025 Aul1 = he_1trans( nelem, Enerwn, n_eff_hi, L_(ipLo)-1, 1030 1026 S_(ipLo), -1, n_eff_lo, L_(ipLo), S_(ipLo), ipLo-3); 1027 1028 iso.CachedAs[ipISO][nelem][ N_(ipHi)-iso.n_HighestResolved_max[ipISO][nelem]-1 ][ ipLo ][1] = (realnum)Aul1; 1029 1031 1030 /* now add in this part after multiplying by stat weight for lHi = lLo-1. */ 1032 Aul += Aul1*(2.*L_(ipLo)-1.) * S_(ipLo) / 1033 (4.*(double)N_(ipHi)*(double)N_(ipHi)); 1031 Aul += Aul1*(2.*L_(ipLo)-1.) * S_(ipLo) / (4.*(double)N_(ipHi)*(double)N_(ipHi)); 1034 1032 } 1033 else 1034 iso.CachedAs[ipISO][nelem][ N_(ipHi)-iso.n_HighestResolved_max[ipISO][nelem]-1 ][ ipLo ][1] = 0.f; 1035 1035 1036 iso_put_error(ipHE_LIKE,nelem,ipHi,ipLo,IPRAD,0.01f); 1036 1037 ASSERT( Aul > 0.); … … 1203 1204 return; 1204 1205 } 1205 /*lint +e662 creation of out of bound pointer */1206 /*lint +e661 creation of out of bound pointer */
