source: trunk/LMDZ.GENERIC/libf/phystd/comm_wrf.F90 @ 1834

Last change on this file since 1834 was 1833, checked in by mlefevre, 7 years ago

MESOSCALE GENERIC. added comm_wrf to send fields to the mesoscale dynamical core.

File size: 3.3 KB
RevLine 
[1833]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_CLOUDFRAC(:,:)
21  REAL,SAVE,ALLOCATABLE :: comm_TOTCLOUDFRAC(:)
22  REAL,SAVE,ALLOCATABLE :: comm_RAIN(:,:)
23  REAL,SAVE,ALLOCATABLE :: comm_SNOW(:,:)
24  REAL,SAVE,ALLOCATABLE :: comm_ALBEQ(:)
25  REAL,SAVE,ALLOCATABLE :: comm_FLUXTOP_DN(:)
26  REAL,SAVE,ALLOCATABLE :: comm_FLUXABS_SW(:)
27  REAL,SAVE,ALLOCATABLE :: comm_FLUXTOP_LW(:)
28  REAL,SAVE,ALLOCATABLE :: comm_FLUXSURF_SW(:)
29  REAL,SAVE,ALLOCATABLE :: comm_FLUXSURF_LW(:)
30  REAL,SAVE,ALLOCATABLE :: comm_FLXGRD(:)
31  REAL,SAVE,ALLOCATABLE :: comm_LSCEZ(:,:)
32  REAL,SAVE,ALLOCATABLE :: comm_H2OICE_REFF(:,:)
33  REAL,SAVE,ALLOCATABLE :: comm_LATENT_HF(:)
34
35contains
36
37  subroutine allocate_comm_wrf(ngrid,nlayer)
38  implicit none
39  integer,intent(in) :: ngrid ! number of atmospheric columns
40  integer,intent(in) :: nlayer ! number of atmospheric layers
41  allocate(comm_HR_SW(ngrid,nlayer))
42  allocate(comm_HR_LW(ngrid,nlayer))
43  allocate(comm_HR_DYN(ngrid,nlayer))
44  allocate(comm_SWDOWNZ(ngrid))
45  allocate(comm_TAU_DUST(ngrid))
46  allocate(comm_RDUST(ngrid,nlayer))
47  allocate(comm_QSURFDUST(ngrid))
48  allocate(comm_MTOT(ngrid))
49  allocate(comm_ICETOT(ngrid))
50  allocate(comm_VMR_ICE(ngrid,nlayer))
51  allocate(comm_TAU_ICE(ngrid))
52  allocate(comm_RICE(ngrid,nlayer))
53  allocate(comm_GEOP(ngrid,nlayer))
54  allocate(comm_CLOUDFRAC(ngrid,nlayer))
55  allocate(comm_TOTCLOUDFRAC(ngrid))
56  allocate(comm_RAIN(ngrid,nlayer))
57  allocate(comm_SNOW(ngrid,nlayer))
58  allocate(comm_ALBEQ(ngrid))
59  allocate(comm_FLUXTOP_DN(ngrid))
60  allocate(comm_FLUXABS_SW(ngrid))
61  allocate(comm_FLUXTOP_LW(ngrid))
62  allocate(comm_FLUXSURF_SW(ngrid))
63  allocate(comm_FLUXSURF_LW(ngrid))
64  allocate(comm_FLXGRD(ngrid))
65  allocate(comm_LSCEZ(ngrid,nlayer))
66  allocate(comm_H2OICE_REFF(ngrid,nlayer))
67  allocate(comm_LATENT_HF(ngrid))
68
69  end subroutine allocate_comm_wrf
70
71  subroutine deallocate_comm_wrf
72  implicit none
73  deallocate(comm_HR_SW)
74  deallocate(comm_HR_LW)
75  deallocate(comm_HR_DYN)
76  deallocate(comm_SWDOWNZ)
77  deallocate(comm_TAU_DUST)
78  deallocate(comm_RDUST)
79  deallocate(comm_QSURFDUST)
80  deallocate(comm_MTOT)
81  deallocate(comm_ICETOT)
82  deallocate(comm_VMR_ICE)
83  deallocate(comm_TAU_ICE)
84  deallocate(comm_RICE)
85  deallocate(comm_GEOP)
86  deallocate(comm_CLOUDFRAC)
87  deallocate(comm_TOTCLOUDFRAC)
88  deallocate(comm_RAIN)
89  deallocate(comm_SNOW)
90  deallocate(comm_ALBEQ)
91  deallocate(comm_FLUXTOP_DN)
92  deallocate(comm_FLUXABS_SW)
93  deallocate(comm_FLUXTOP_LW)
94  deallocate(comm_FLUXSURF_SW)
95  deallocate(comm_FLUXSURF_LW)
96  deallocate(comm_FLXGRD)
97  deallocate(comm_LSCEZ)
98  deallocate(comm_H2OICE_REFF)
99  deallocate(comm_LATENT_HF)
100
101  end subroutine deallocate_comm_wrf
102
103end module comm_wrf
104
Note: See TracBrowser for help on using the repository browser.