Changeset 1991 for trunk


Ignore:
Timestamp:
Aug 28, 2018, 5:35:44 PM (6 years ago)
Author:
jleconte
Message:

forgot to commit the file gfluxv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/gfluxv.F

    r1988 r1991  
    4545!!      PARAMETER (NLP=101) ! MUST BE LARGER THAN NLEVEL
    4646
    47       REAL*8 EM, EP
     47      REAL*8 EM, EP, EXPTRM
    4848      REAL*8 W0(L_NLAYRAD), COSBAR(L_NLAYRAD), DTAU(L_NLAYRAD)
    4949      REAL*8 TAU(L_NLEVRAD), WDEL(L_NLAYRAD), CDEL(L_NLAYRAD)
     
    5454      REAL*8 G3(L_NLAYRAD), GAMA(L_NLAYRAD),CP(L_NLAYRAD),CM(L_NLAYRAD)
    5555      REAL*8 CPM1(L_NLAYRAD),CMM1(L_NLAYRAD), E1(L_NLAYRAD)
    56       REAL*8 E2(L_NLAYRAD),E3(L_NLAYRAD),E4(L_NLAYRAD),EXPTRM(L_NLAYRAD)
     56      REAL*8 E2(L_NLAYRAD),E3(L_NLAYRAD),E4(L_NLAYRAD)
    5757      REAL*8 FLUXUP, FLUXDN
    5858      REAL*8 FACTOR, TAUCUMIN(L_LEVELS), TAUCUM(L_LEVELS)
     
    184184
    185185      DO L=1,L_NLAYRAD
    186         EXPTRM(L) = MIN(TAUMAX,LAMDA(L)*DTAU(L))  ! CLIPPED EXPONENTIAL
    187         EP = EXP(EXPTRM(L))
     186        EXPTRM = MIN(TAUMAX,LAMDA(L)*DTAU(L))  ! CLIPPED EXPONENTIAL
     187        EP = EXP(EXPTRM)
    188188
    189189        EM        = 1.0/EP
     
    200200 
    201201      DO L=1,L_NLAYRAD-1
    202         EXPTRM(L) = MIN(TAUMAX,LAMDA(L)*(TAUCUM(2*L+1)-TAUCUM(2*L)))
    203  
    204         EP = EXP(EXPTRM(L))
     202        EXPTRM = MIN(TAUMAX,LAMDA(L)*(TAUCUM(2*L+1)-TAUCUM(2*L)))
     203 
     204        EP = EXP(EXPTRM)
    205205
    206206        EM    = 1.0/EP
     
    243243!      EM    = 1.0
    244244C JL18 correction to account for the fact that the radiative top is not at zero optical depth.
    245       EXPTRM(L) = MIN(TAUMAX,LAMDA(L)*(TAUCUM(2)))
    246       EP = EXP(EXPTRM(L))
     245      EXPTRM = MIN(TAUMAX,LAMDA(L)*(TAUCUM(2)))
     246      EP = EXP(EXPTRM)
    247247      EM    = 1.0/EP
    248248      G4    = 1.0-G3(1)
     
    286286
    287287      L     = L_NLAYRAD
    288       EXPTRM(L) = MIN(TAUMAX,LAMDA(L)*(TAUCUM(L_LEVELS)-
     288      EXPTRM = MIN(TAUMAX,LAMDA(L)*(TAUCUM(L_LEVELS)-
    289289     *                                 TAUCUM(L_LEVELS-1)))
    290290
    291       EP    = EXP(EXPTRM(L))
     291      EP    = EXP(EXPTRM)
    292292      EM    = 1.0/EP
    293293      G4    = 1.0-G3(L)
Note: See TracChangeset for help on using the changeset viewer.