/[lmdze]/trunk/Sources/phylmd/ustarhb.f
ViewVC logotype

Contents of /trunk/Sources/phylmd/ustarhb.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 238 - (show annotations)
Thu Nov 9 14:11:39 2017 UTC (6 years, 6 months ago) by guez
File size: 1253 byte(s)
In procedure clmain, remove local variable ykmq, not used (not used in
LMDZ either). Remove its computation in yamada4.

In procedure yamada4, remove dummy argument cd, not used.

1 module ustarhb_m
2
3 IMPLICIT none
4
5 contains
6
7 pure function ustarhb(u, v, cd_m)
8
9 ! From LMDZ4/libf/phylmd/ustarhb.F, version 1.1, 2004/06/22 11:45:35
10
11 ! Laurent Li (LMD/CNRS), le 30 septembre 1998
12 ! Couche limite non-locale. Adaptation du code du CCM3.
13 ! Code non test\'e, donc \`a ne pas utiliser.
14
15 ! Non-local scheme that determines eddy diffusivities based on a
16 ! diagnosed boundary layer height and a turbulent velocity scale.
17 ! Also countergradient effects for heat and moisture are included.
18
19 ! For more information, see Holtslag, A.A.M. and B.A. Boville, 1993:
20 ! Local versus nonlocal boundary-layer diffusion in a global climate
21 ! model. J. of Climate, vol. 6, 1825-1842.
22
23 REAL, intent(in):: u(:), v(:) ! wind in first layer (m/s)
24 REAL, intent(in):: cd_m(:) ! coefficient de friction au sol pour vitesse
25 REAL ustarhb(size(u))
26
27 ! Local:
28 INTEGER i
29 REAL zxmod, taux, tauy
30
31 !---------------------------------------------------------------
32
33 DO i = 1, size(u)
34 zxmod = 1. + SQRT(u(i)**2 + v(i)**2)
35 taux = u(i) * zxmod * cd_m(i)
36 tauy = v(i) * zxmod * cd_m(i)
37 ustarhb(i) = SQRT(taux**2 + tauy**2)
38 ENDDO
39
40 end function ustarhb
41
42 end module ustarhb_m

  ViewVC Help
Powered by ViewVC 1.1.21