source: trunk/LMDZ.GENERIC/libf/phystd/conc_mod.F90 @ 4033

Last change on this file since 4033 was 4033, checked in by mmaurice, 2 days ago

Generic PCM

Introduce molecular viscosity module. Add callconduc and callmolvis
flags to call conduction and molecular viscosity, respectively. Change
phitop in conduction to phitop_conduc (there is also phitop_molvis now).
Move thermal conductivity lambda to conc_mod.F90.

MM

File size: 1.1 KB
Line 
1module conc_mod
2
3implicit none
4
5  real,save,allocatable :: mmean(:,:)  ! mean molecular mass of the atmosphere
6  real,save,allocatable :: Akknew(:,:) ! thermal conductivity cofficient
7  real,save,allocatable :: lambda(:,:) ! effective thermal conductivity
8  real,save,allocatable :: cpnew(:,:)  ! specicic heat
9  real,save,allocatable :: rnew(:,:)   ! specific gas constant
10 
11contains
12
13  subroutine ini_conc_mod(ngrid,nlayer)
14 
15  implicit none
16  integer,intent(in) :: ngrid ! number of atmospheric columns
17  integer,intent(in) :: nlayer ! number of atmospheric levels
18 
19    allocate(mmean(ngrid,nlayer))
20    allocate(Akknew(ngrid,nlayer))
21    allocate(lambda(ngrid,nlayer))
22    allocate(cpnew(ngrid,nlayer))
23    allocate(rnew(ngrid,nlayer))
24   
25  end subroutine ini_conc_mod
26
27  subroutine end_conc_mod
28
29  implicit none
30
31    if (allocated(mmean)) deallocate(mmean)
32    if (allocated(Akknew)) deallocate(Akknew)
33    if (allocated(lambda)) deallocate(lambda)
34    if (allocated(cpnew)) deallocate(cpnew)
35    if (allocated(rnew)) deallocate(rnew)
36
37  end subroutine end_conc_mod
38
39
40end module conc_mod
Note: See TracBrowser for help on using the repository browser.