Changeset 3042


Ignore:
Timestamp:
Oct 25, 2017, 11:54:04 AM (7 years ago)
Author:
Laurent Fairhead
Message:

Applying r3041 to the branch and cleanup
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/IPSLCM6.0.13/libf/phylmd/yamada4.F90

    r3040 r3042  
    117117  REAL aa(klon, klev+1), aa0, aa1
    118118  INTEGER nlay, nlev
    119   LOGICAL first
    120   INTEGER ipas
    121   SAVE first, ipas
    122   ! FH/IM     data first,ipas/.true.,0/
    123   DATA first, ipas/.FALSE., 0/
    124   !$OMP THREADPRIVATE( first,ipas)
     119
    125120  LOGICAL,SAVE :: hboville=.TRUE.
    126121  REAL,SAVE :: viscom,viscoh
     
    136131  INTEGER iter
    137132  REAL dissip(klon,klev), tkeprov,tkeexp, shear(klon,klev), buoy(klon,klev)
     133  REAL :: disseff
     134
    138135  REAL,SAVE :: ric0,ric,rifc, b1, kap
    139136  !$OMP THREADPRIVATE(ric0,ric,rifc,b1,kap)
     
    147144  !$OMP THREADPRIVATE(new_yamada4,yamada4_num)
    148145  REAL, SAVE :: yun,ydeux
    149   REAL :: disseff
    150146  !$OMP THREADPRIVATE(yun,ydeux)
     147
    151148  REAL frif, falpha, fsm
    152149  REAL rino(klon, klev+1), smyam(klon, klev), styam(klon, klev), &
     
    225222  nlay = klev
    226223  nlev = klev + 1
    227   ipas = ipas + 1
    228224
    229225
     
    659655
    660656! Ajout d'une viscosite moleculaire
    661    km(1:ngrid,:)=km(1:ngrid,:)+viscom
    662    kn(1:ngrid,:)=kn(1:ngrid,:)+viscoh
    663    kq(1:ngrid,:)=kq(1:ngrid,:)+viscoh
     657   km(1:ngrid,2:klev)=km(1:ngrid,2:klev)+viscom
     658   kn(1:ngrid,2:klev)=kn(1:ngrid,2:klev)+viscoh
     659   kq(1:ngrid,2:klev)=kq(1:ngrid,2:klev)+viscoh
    664660
    665661  IF (prt_level>1) THEN
     
    725721!============================================================================
    726722
    727   first = .FALSE.
    728723  RETURN
    729724
     
    978973 REAL     hlim(klon)
    979974 REAL, SAVE :: kap=0.4,kapb=0.4
     975  !$OMP THREADPRIVATE(kap,kapb)
    980976 REAL zq
    981977 REAL sq(klon), sqz(klon)
Note: See TracChangeset for help on using the changeset viewer.