Changeset 2064 for trunk/LMDZ.GENERIC/libf/phystd/thermcell_closure.F90
- Timestamp:
- Jan 10, 2019, 3:44:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/thermcell_closure.F90
r2060 r2064 3 3 ! 4 4 SUBROUTINE thermcell_closure(ngrid,nlay,ptimestep,rho,zlev, & 5 & lalim,alim_star,f_star,zmax,wmax,f,lev_out)6 5 & lalim,alim_star,f_star, & 6 & zmax,wmax,f,lev_out) 7 7 8 8 !============================================================================== … … 77 77 DO ig=1,ngrid 78 78 IF (lalim(ig)>llmax) THEN 79 llmax =lalim(ig)79 llmax = lalim(ig) 80 80 ENDIF 81 81 ENDDO … … 88 88 DO ig=1,ngrid 89 89 IF (k<lalim(ig)) THEN 90 alim_star2(ig) =alim_star2(ig)+alim_star(ig,k)**2&91 & /(rho(ig,k)*(zlev(ig,k+1)-zlev(ig,k)))92 alim_star_tot(ig) =alim_star_tot(ig)+alim_star(ig,k)90 alim_star2(ig) = alim_star2(ig) + alim_star(ig,k)**2 & 91 & / (rho(ig,k) * (zlev(ig,k+1) - zlev(ig,k))) 92 alim_star_tot(ig) = alim_star_tot(ig) + alim_star(ig,k) 93 93 ENDIF 94 94 ENDDO … … 97 97 DO ig=1,ngrid 98 98 IF (alim_star2(ig)>1.e-10) THEN 99 f(ig) = wmax(ig) * alim_star_tot(ig) /&100 & (max(500.,zmax(ig))*r_aspect_thermals*alim_star2(ig))99 f(ig) = wmax(ig) * alim_star_tot(ig) & 100 & / (max(500.,zmax(ig)) * r_aspect_thermals * alim_star2(ig)) 101 101 ENDIF 102 102 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.