Ignore:
Timestamp:
Sep 5, 2019, 3:33:16 PM (5 years ago)
Author:
aslmd
Message:

changed old functions dexp dlog in generic exp and log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/nlte_aux.F

    r1124 r2151  
    354354      factor =  (h-zy(k)) /  (zy(k+1)-zy(k))
    355355      ap = dble( exp( log(py(k)) + log(py(k+1)/py(k)) * factor ) )
    356       aco2 = dlog(con(k)) + dlog( con(k+1)/con(k) ) * dble(factor)
     356      aco2 = log(con(k)) + log( con(k+1)/con(k) ) * dble(factor)
    357357      aco2 = exp( aco2 )
    358358      at = dble( ty(k) + (ty(k+1)-ty(k)) * factor )
     
    392392      ap = dble( exp( log(py_cts(k)) +
    393393     @     log(py_cts(k+1)/py_cts(k)) * factor ) )
    394       aco2 = dlog(con(k)) + dlog( con(k+1)/con(k) ) * dble(factor)
     394      aco2 = log(con(k)) + log( con(k+1)/con(k) ) * dble(factor)
    395395      aco2 = exp( aco2 )
    396396      at = dble( ty_cts(k) + (ty_cts(k+1)-ty_cts(k)) * factor )
     
    11681168            y3(i) = x3(j) + (x3(j+1)-x3(j)) * factor
    11691169         else
    1170             y1(i) = dexp( dlog(x1(j)) + dlog(x1(j+1)/x1(j)) * factor )
    1171             y2(i) = dexp( dlog(x2(j)) + dlog(x2(j+1)/x2(j)) * factor )
    1172             y3(i) = dexp( dlog(x3(j)) + dlog(x3(j+1)/x3(j)) * factor )
     1170            y1(i) = exp( log(x1(j)) + log(x1(j+1)/x1(j)) * factor )
     1171            y2(i) = exp( log(x2(j)) + log(x2(j+1)/x2(j)) * factor )
     1172            y3(i) = exp( log(x3(j)) + log(x3(j+1)/x3(j)) * factor )
    11731173         end if
    11741174
     
    12351235            y4(i) = x4(j) + (x4(j+1)-x4(j)) * factor
    12361236         else
    1237             y1(i) = dexp( dlog(x1(j)) + dlog(x1(j+1)/x1(j)) * factor )
    1238             y2(i) = dexp( dlog(x2(j)) + dlog(x2(j+1)/x2(j)) * factor )
    1239             y3(i) = dexp( dlog(x3(j)) + dlog(x3(j+1)/x3(j)) * factor )
    1240             y4(i) = dexp( dlog(x4(j)) + dlog(x4(j+1)/x4(j)) * factor )
     1237            y1(i) = exp( log(x1(j)) + log(x1(j+1)/x1(j)) * factor )
     1238            y2(i) = exp( log(x2(j)) + log(x2(j+1)/x2(j)) * factor )
     1239            y3(i) = exp( log(x3(j)) + log(x3(j+1)/x3(j)) * factor )
     1240            y4(i) = exp( log(x4(j)) + log(x4(j+1)/x4(j)) * factor )
    12411241         end if
    12421242
     
    13001300            y1(i) = x1(j) + (x1(j+1)-x1(j)) * factor
    13011301         else
    1302             y1(i) = dexp( dlog(x1(j)) + dlog(x1(j+1)/x1(j)) * factor )
     1302            y1(i) = exp( log(x1(j)) + log(x1(j+1)/x1(j)) * factor )
    13031303         end if
    13041304
Note: See TracChangeset for help on using the changeset viewer.