1 | module conc_mod |
---|
2 | |
---|
3 | implicit 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 :: cpnew(:,:) ! specicic heat |
---|
8 | real,save,allocatable :: rnew(:,:) ! specific gas constant |
---|
9 | |
---|
10 | contains |
---|
11 | |
---|
12 | subroutine ini_conc_mod(ngrid,nlayer) |
---|
13 | |
---|
14 | implicit none |
---|
15 | integer,intent(in) :: ngrid ! number of atmospheric columns |
---|
16 | integer,intent(in) :: nlayer ! number of atmospheric levels |
---|
17 | |
---|
18 | allocate(mmean(ngrid,nlayer)) |
---|
19 | allocate(Akknew(ngrid,nlayer)) |
---|
20 | allocate(cpnew(ngrid,nlayer)) |
---|
21 | allocate(rnew(ngrid,nlayer)) |
---|
22 | |
---|
23 | end subroutine ini_conc_mod |
---|
24 | |
---|
25 | subroutine end_conc_mod |
---|
26 | |
---|
27 | implicit none |
---|
28 | |
---|
29 | if (allocated(mmean)) deallocate(mmean) |
---|
30 | if (allocated(Akknew)) deallocate(Akknew) |
---|
31 | if (allocated(cpnew)) deallocate(cpnew) |
---|
32 | if (allocated(rnew)) deallocate(rnew) |
---|
33 | |
---|
34 | end subroutine end_conc_mod |
---|
35 | |
---|
36 | |
---|
37 | end module conc_mod |
---|