[4176] | 1 | SUBROUTINE inifrict(timestep) |
---|
| 2 | USE comgeomfi, ONLY : ngridmax,nlayermx |
---|
| 3 | USE constlim |
---|
| 4 | IMPLICIT NONE |
---|
| 5 | c======================================================================= |
---|
| 6 | c |
---|
| 7 | c Calcul des coefficients de ls diffusion verticale |
---|
| 8 | c |
---|
| 9 | c======================================================================= |
---|
| 10 | c----------------------------------------------------------------------- |
---|
| 11 | c Declarations: |
---|
| 12 | c ------------- |
---|
| 13 | |
---|
| 14 | #include "comcstfi.h" |
---|
| 15 | ! include "comvert.h" |
---|
| 16 | |
---|
| 17 | c local: |
---|
| 18 | c ------ |
---|
| 19 | |
---|
| 20 | REAL dgrad,cpr,rl2,rrr,timestep |
---|
| 21 | INTEGER l,ij |
---|
| 22 | |
---|
| 23 | c----------------------------------------------------------------------- |
---|
| 24 | |
---|
| 25 | call initconstlim |
---|
| 26 | |
---|
| 27 | dtradia=timestep |
---|
| 28 | PRINT*,'DTPHYS',dtradia |
---|
| 29 | lmixmin=100. |
---|
| 30 | ais1 = 1. |
---|
| 31 | ais2 = ais1 - 1. |
---|
| 32 | print*,'ais1',ais1,'ais2',ais2 |
---|
| 33 | cdzmin = 1.e-6 |
---|
| 34 | OPEN(99,file='cdzmin',status='old',err=9999) |
---|
| 35 | READ(99,*) cdzmin |
---|
| 36 | 9999 CLOSE(99) |
---|
| 37 | PRINT*,'cdzmin=',cdzmin |
---|
| 38 | |
---|
| 39 | cpr = cpp/ r |
---|
| 40 | ccdzh = 2.5*g |
---|
| 41 | c!!! cpgam = 5.e-3*cpp |
---|
| 42 | cpgam=0. |
---|
| 43 | |
---|
| 44 | c----------------------------------------------------------------------- |
---|
| 45 | c coefficient de diffusion dans l'atmosphere: |
---|
| 46 | c ------------------------------------------- |
---|
| 47 | |
---|
| 48 | rl2=lmixmin**2 |
---|
| 49 | cdzconst(1)= 0. |
---|
| 50 | DO 15 l=1,nlayermx - 1 |
---|
| 51 | cdzconst(l+1)= dtradia*g*g*cpr*rl2 |
---|
| 52 | print*,'cdzconst(',l+1,') = ',cdzconst(l+1) |
---|
| 53 | 15 CONTINUE |
---|
| 54 | |
---|
| 55 | c----------------------------------------------------------------------- |
---|
| 56 | c couche limite de surface: |
---|
| 57 | c ------------------------- |
---|
| 58 | |
---|
| 59 | cdrat = 2.e-3 |
---|
| 60 | dgrad = dtradia*g*cpp/r |
---|
| 61 | DO 16 ij = 1, ngridmax |
---|
| 62 | dgcdrag( ij ) = cdrat * dgrad |
---|
| 63 | 16 CONTINUE |
---|
| 64 | |
---|
| 65 | RETURN |
---|
| 66 | END |
---|