1 | SUBROUTINE vdif_cd( ngrid,nlay,pz0,pg,pz,pu,pv,pts,ph,pcdv,pcdh) |
---|
2 | IMPLICIT NONE |
---|
3 | c======================================================================= |
---|
4 | c |
---|
5 | c Subject: computation of the surface drag coefficient using the |
---|
6 | c ------- approch developed by Loui for ECMWF. |
---|
7 | c |
---|
8 | c Author: Frederic Hourdin 15 /10 /93 |
---|
9 | c ------- |
---|
10 | c |
---|
11 | c Arguments: |
---|
12 | c ---------- |
---|
13 | c |
---|
14 | c inputs: |
---|
15 | c ------ |
---|
16 | c ngrid size of the horizontal grid |
---|
17 | c pg gravity (m s -2) |
---|
18 | c pz(ngrid) height of the first atmospheric layer |
---|
19 | c pu(ngrid) u component of the wind in that layer |
---|
20 | c pv(ngrid) v component of the wind in that layer |
---|
21 | c pts(ngrid) surfacte temperature |
---|
22 | c ph(ngrid) potential temperature T*(p/ps)^kappa |
---|
23 | c |
---|
24 | c outputs: |
---|
25 | c -------- |
---|
26 | c pcdv(ngrid) Cd for the wind |
---|
27 | c pcdh(ngrid) Cd for potential temperature |
---|
28 | c |
---|
29 | c======================================================================= |
---|
30 | c |
---|
31 | c----------------------------------------------------------------------- |
---|
32 | c Declarations: |
---|
33 | c ------------- |
---|
34 | |
---|
35 | c Arguments: |
---|
36 | c ---------- |
---|
37 | |
---|
38 | INTEGER ngrid,nlay |
---|
39 | REAL pz0 |
---|
40 | REAL pg,pz(ngrid,nlay) |
---|
41 | REAL pu(ngrid,nlay),pv(ngrid,nlay) |
---|
42 | REAL pts(ngrid,nlay),ph(ngrid,nlay) |
---|
43 | REAL pcdv(ngrid),pcdh(ngrid) |
---|
44 | |
---|
45 | c Local: |
---|
46 | c ------ |
---|
47 | |
---|
48 | INTEGER ig |
---|
49 | |
---|
50 | REAL zu2,z1,zri,zcd0,zz |
---|
51 | |
---|
52 | REAL karman,b,c,d,c2b,c3bc,c3b,umin2 |
---|
53 | LOGICAL firstcal |
---|
54 | DATA karman,b,c,d,umin2/.4,5.,5.,5.,1.e-12/ |
---|
55 | DATA firstcal/.true./ |
---|
56 | SAVE b,c,d,karman,c2b,c3bc,c3b,firstcal,umin2 |
---|
57 | !$OMP THREADPRIVATE(b,c,d,karman,c2b,c3bc,c3b,firstcal,umin2) |
---|
58 | |
---|
59 | c----------------------------------------------------------------------- |
---|
60 | c couche de surface: |
---|
61 | c ------------------ |
---|
62 | |
---|
63 | ! simplified calculation |
---|
64 | |
---|
65 | DO ig=1,ngrid |
---|
66 | z1=1.E+0 + pz(ig,1)/pz0 |
---|
67 | zcd0=karman/log(z1) |
---|
68 | zcd0=zcd0*zcd0 |
---|
69 | pcdv(ig)=zcd0 |
---|
70 | pcdh(ig)=zcd0 |
---|
71 | ENDDO |
---|
72 | |
---|
73 | c----------------------------------------------------------------------- |
---|
74 | |
---|
75 | RETURN |
---|
76 | END |
---|