source: trunk/LMDZ.VENUS/libf/phyvenus/comm_wrf.F90 @ 2187

Last change on this file since 2187 was 1723, checked in by mlefevre, 7 years ago

Mesoscale modification for Venus LMD physics

File size: 2.2 KB
Line 
1module comm_wrf
2
3!!
4!! This module is useful to output fields in WRF style
5!!
6!USE only for the mescoscale (comm_HR_SW, comm_HR_LW). OUTPUT
7  REAL,SAVE,ALLOCATABLE :: comm_HR_SW(:,:)
8  REAL,SAVE,ALLOCATABLE :: comm_HR_LW(:,:)
9  REAL,SAVE,ALLOCATABLE :: comm_HR_DYN(:,:)
10  REAL,SAVE,ALLOCATABLE :: comm_SWDOWNZ(:)
11  REAL,SAVE,ALLOCATABLE :: comm_TAU_DUST(:)
12  REAL,SAVE,ALLOCATABLE :: comm_RDUST(:,:)
13  REAL,SAVE,ALLOCATABLE :: comm_QSURFDUST(:)
14  REAL,SAVE,ALLOCATABLE :: comm_MTOT(:)
15  REAL,SAVE,ALLOCATABLE :: comm_ICETOT(:)
16  REAL,SAVE,ALLOCATABLE :: comm_VMR_ICE(:,:)
17  REAL,SAVE,ALLOCATABLE :: comm_TAU_ICE(:)
18  REAL,SAVE,ALLOCATABLE :: comm_RICE(:,:)
19  REAL,SAVE,ALLOCATABLE :: comm_GEOP(:,:)
20  REAL,SAVE,ALLOCATABLE :: comm_DT(:,:)
21  REAL,SAVE,ALLOCATABLE :: comm_DT_RAD(:,:)
22  REAL,SAVE,ALLOCATABLE :: comm_DT_VDF(:,:)
23  REAL,SAVE,ALLOCATABLE :: comm_DT_AJS(:,:)
24
25
26contains
27
28  subroutine allocate_comm_wrf(ngrid,nlayer)
29  implicit none
30  integer,intent(in) :: ngrid ! number of atmospheric columns
31  integer,intent(in) :: nlayer ! number of atmospheric layers
32  allocate(comm_HR_SW(ngrid,nlayer))
33  allocate(comm_HR_LW(ngrid,nlayer))
34  allocate(comm_HR_DYN(ngrid,nlayer))
35  allocate(comm_SWDOWNZ(ngrid))
36  allocate(comm_TAU_DUST(ngrid))
37  allocate(comm_RDUST(ngrid,nlayer))
38  allocate(comm_QSURFDUST(ngrid))
39  allocate(comm_MTOT(ngrid))
40  allocate(comm_ICETOT(ngrid))
41  allocate(comm_VMR_ICE(ngrid,nlayer))
42  allocate(comm_TAU_ICE(ngrid))
43  allocate(comm_RICE(ngrid,nlayer))
44  allocate(comm_GEOP(ngrid,nlayer))
45  allocate(comm_DT(ngrid,nlayer))
46  allocate(comm_DT_RAD(ngrid,nlayer))
47  allocate(comm_DT_VDF(ngrid,nlayer))
48  allocate(comm_DT_AJS(ngrid,nlayer))
49  end subroutine allocate_comm_wrf
50
51  subroutine deallocate_comm_wrf
52  implicit none
53  deallocate(comm_HR_SW)
54  deallocate(comm_HR_LW)
55  deallocate(comm_HR_DYN)
56  deallocate(comm_SWDOWNZ)
57  deallocate(comm_TAU_DUST)
58  deallocate(comm_RDUST)
59  deallocate(comm_QSURFDUST)
60  deallocate(comm_MTOT)
61  deallocate(comm_ICETOT)
62  deallocate(comm_VMR_ICE)
63  deallocate(comm_TAU_ICE)
64  deallocate(comm_RICE)
65  deallocate(comm_GEOP)
66  deallocate(comm_DT)
67  deallocate(comm_DT_RAD)
68  deallocate(comm_DT_VDF)
69  deallocate(comm_DT_AJS)
70  end subroutine deallocate_comm_wrf
71
72end module comm_wrf
73
Note: See TracBrowser for help on using the repository browser.