source: dynamico_lmdz/simple_physics/phyparam/param/inifrict.F @ 4201

Last change on this file since 4201 was 4183, checked in by dubos, 6 years ago

simple_physics : comcstfi.h => MODULE phys_const.F90

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