Changeset 5117 for LMDZ6/branches/Amaury_dev/libf/phylmd/yamada_c.F90
- Timestamp:
- Jul 24, 2024, 4:23:34 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/yamada_c.F90
r5116 r5117 54 54 55 55 REAL timestep 56 realplev(klon,klev+1)57 realplay(klon,klev)58 realustar(klon)59 realkmin,qmin,pblhmin(klon),coriol(klon)56 REAL plev(klon,klev+1) 57 REAL play(klon,klev) 58 REAL ustar(klon) 59 REAL kmin,qmin,pblhmin(klon),coriol(klon) 60 60 REAL zlev(klon,klev+1) 61 61 REAL zlay(klon,klev) … … 74 74 REAL kn(klon,klev) 75 75 REAL kq(klon,klev) 76 realff(klon,klev+1),delta(klon,klev+1)77 realaa(klon,klev+1),aa0,aa178 integeriflag_pbl,ngrid79 integernlay,nlev80 81 logicalfirst82 integeripas76 REAL ff(klon,klev+1),delta(klon,klev+1) 77 REAL aa(klon,klev+1),aa0,aa1 78 INTEGER iflag_pbl,ngrid 79 INTEGER nlay,nlev 80 81 LOGICAL first 82 INTEGER ipas 83 83 save first,ipas 84 84 !FH/IM data first,ipas/.TRUE.,0/ … … 89 89 90 90 91 integerig,k92 93 94 realri,zrif,zalpha,zsm,zsn95 realrif(klon,klev+1),sm(klon,klev+1),alpha(klon,klev)96 97 realm2(klon,klev+1),dz(klon,klev+1),zq,n2(klon,klev+1)91 INTEGER ig,k 92 93 94 REAL ri,zrif,zalpha,zsm,zsn 95 REAL rif(klon,klev+1),sm(klon,klev+1),alpha(klon,klev) 96 97 REAL m2(klon,klev+1),dz(klon,klev+1),zq,n2(klon,klev+1) 98 98 REAL, DIMENSION(klon,klev+1) :: km2,kn2,sqrtq 99 realdtetadz(klon,klev+1)100 realm2cstat,mcstat,kmcstat101 reall(klon,klev+1)102 realleff(klon,klev+1)103 real,allocatable,save :: l0(:)99 REAL dtetadz(klon,klev+1) 100 REAL m2cstat,mcstat,kmcstat 101 REAL l(klon,klev+1) 102 REAL leff(klon,klev+1) 103 REAL,ALLOCATABLE,save :: l0(:) 104 104 !$OMP THREADPRIVATE(l0) 105 realsq(klon),sqz(klon),zz(klon,klev+1)106 integeriter107 108 realric,rifc,b1,kap105 REAL sq(klon),sqz(klon),zz(klon,klev+1) 106 INTEGER iter 107 108 REAL ric,rifc,b1,kap 109 109 save ric,rifc,b1,kap 110 110 data ric,rifc,b1,kap/0.195,0.191,16.6,0.4/ 111 111 !$OMP THREADPRIVATE(ric,rifc,b1,kap) 112 realfrif,falpha,fsm113 realfl,zzz,zl0,zq2,zn2114 115 realrino(klon,klev+1),smyam(klon,klev),styam(klon,klev)116 reallyam(klon,klev),knyam(klon,klev)117 realw2yam(klon,klev),t2yam(klon,klev)112 REAL frif,falpha,fsm 113 REAL fl,zzz,zl0,zq2,zn2 114 115 REAL rino(klon,klev+1),smyam(klon,klev),styam(klon,klev) 116 REAL lyam(klon,klev),knyam(klon,klev) 117 REAL w2yam(klon,klev),t2yam(klon,klev) 118 118 logical,save :: firstcall=.TRUE. 119 119 !$OMP THREADPRIVATE(firstcall) … … 134 134 135 135 okiophys=klon==1 136 if(firstcall) THEN136 IF (firstcall) THEN 137 137 CALL getin_p('iflag_tke_diff',iflag_tke_diff) 138 138 allocate(l0(klon)) … … 277 277 ! n2(ig,k)=0. 278 278 ri=n2(ig,k)/max(m2(ig,k),1.e-10) 279 if(ri<ric) THEN279 IF (ri<ric) THEN 280 280 rif(ig,k)=frif(ri) 281 281 else … … 300 300 301 301 ! Mise a jour de l0 302 if (iflag_pbl==8.or.iflag_pbl==10) THEN302 IF (iflag_pbl==8.OR.iflag_pbl==10) THEN 303 303 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 304 304 ! Iterative computation of l0 … … 438 438 439 439 ! Computation of turbulent diffusivities 440 ! IF (25<=iflag_pbl. and.iflag_pbl<=28) THEN440 ! IF (25<=iflag_pbl.AND.iflag_pbl<=28) THEN 441 441 ! DO k=2,klev 442 442 ! sqrtq(:,k)=sqrt(0.5*(q2(:,k)+q2(:,k-1)))
Note: See TracChangeset
for help on using the changeset viewer.