Changeset 2441
- Timestamp:
- Feb 12, 2016, 5:22:02 PM (9 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/cdrag.F90
r2311 r2441 114 114 LOGICAL, PARAMETER :: zxli=.FALSE. ! calcul des cdrags selon Laurent Li 115 115 REAL, DIMENSION(klon) :: zcdn_m, zcdn_h ! Drag coefficient in neutral conditions 116 REAL zzzcd 116 117 ! 117 118 ! Fonctions thermodynamiques et fonctions d'instabilite … … 176 177 177 178 178 ! Coefficients CD neutres pour m et h 179 zcdn_m(i) = (CKAP/LOG(1.+zgeop1(i)/(RG*z0m(i))))**2 180 zcdn_h(i) = (CKAP/LOG(1.+zgeop1(i)/(RG*z0h(i))))**2 179 ! Coefficients CD neutres pour m et h : k^2/ln(z/z0) et k^2/(ln(z/z0)*ln(z/z0h)) 180 zzzcd=CKAP/LOG(1.+zgeop1(i)/(RG*z0m(i))) 181 zcdn_m(i) = zzzcd*zzzcd 182 zcdn_h(i) = zzzcd*(CKAP/LOG(1.+zgeop1(i)/(RG*z0m(i)))) 181 183 182 184 IF (zri(i) .GT. 0.) THEN ! situation stable -
LMDZ5/trunk/libf/phylmd/yamada4.F90
r2346 r2441 6 6 USE dimphy 7 7 USE print_control_mod, ONLY: prt_level 8 USE ioipsl_getin_p_mod, ONLY : getin_p 9 8 10 IMPLICIT NONE 9 11 … … 75 77 DATA first, ipas/.FALSE., 0/ 76 78 !$OMP THREADPRIVATE( first,ipas) 79 REAL,SAVE :: lmixmin=1. 80 !$OMP THREADPRIVATE(lmixmin) 81 77 82 78 83 INTEGER ig, k … … 107 112 fl(zzz, zl0, zq2, zn2) = max(min(l0(ig)*kap*zlev(ig, & 108 113 k)/(kap*zlev(ig,k)+l0(ig)),0.5*sqrt(q2(ig,k))/sqrt( & 109 max(n2(ig,k),1.E-10))), 1.)114 max(n2(ig,k),1.E-10))), lmixmin) 110 115 111 116 … … 116 121 ALLOCATE (l0(klon)) 117 122 firstcall = .FALSE. 123 CALL getin_p('lmixmin',lmixmin) 118 124 END IF 119 125 … … 341 347 DO k = 2, klev - 1 342 348 DO ig = 1, ngrid 343 l(ig, k) = max(l(ig,k), 1.)349 l(ig, k) = max(l(ig,k), lmixmin) 344 350 km(ig, k) = l(ig, k)*sqrt(q2(ig,k))*sm(ig, k) 345 351 q2(ig, k) = q2(ig, k) + dt*km(ig, k)*m2(ig, k)*(1.-rif(ig,k))
Note: See TracChangeset
for help on using the changeset viewer.