1 | module 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_MTOT(:) |
---|
12 | REAL,SAVE,ALLOCATABLE :: comm_GEOP(:,:) |
---|
13 | REAL,SAVE,ALLOCATABLE :: comm_ALBEQ(:) |
---|
14 | REAL,SAVE,ALLOCATABLE :: comm_FLUXTOP_DN(:) |
---|
15 | REAL,SAVE,ALLOCATABLE :: comm_FLUXABS_SW(:) |
---|
16 | REAL,SAVE,ALLOCATABLE :: comm_FLUXTOP_LW(:) |
---|
17 | REAL,SAVE,ALLOCATABLE :: comm_FLUXSURF_SW(:) |
---|
18 | REAL,SAVE,ALLOCATABLE :: comm_FLUXSURF_LW(:) |
---|
19 | REAL,SAVE,ALLOCATABLE :: comm_FLXGRD(:) |
---|
20 | |
---|
21 | contains |
---|
22 | |
---|
23 | subroutine allocate_comm_wrf(ngrid,nlayer) |
---|
24 | implicit none |
---|
25 | integer,intent(in) :: ngrid ! number of atmospheric columns |
---|
26 | integer,intent(in) :: nlayer ! number of atmospheric layers |
---|
27 | allocate(comm_HR_SW(ngrid,nlayer)) |
---|
28 | allocate(comm_HR_LW(ngrid,nlayer)) |
---|
29 | allocate(comm_HR_DYN(ngrid,nlayer)) |
---|
30 | allocate(comm_SWDOWNZ(ngrid)) |
---|
31 | allocate(comm_MTOT(ngrid)) |
---|
32 | allocate(comm_GEOP(ngrid,nlayer)) |
---|
33 | allocate(comm_ALBEQ(ngrid)) |
---|
34 | allocate(comm_FLUXTOP_DN(ngrid)) |
---|
35 | allocate(comm_FLUXABS_SW(ngrid)) |
---|
36 | allocate(comm_FLUXTOP_LW(ngrid)) |
---|
37 | allocate(comm_FLUXSURF_SW(ngrid)) |
---|
38 | allocate(comm_FLUXSURF_LW(ngrid)) |
---|
39 | allocate(comm_FLXGRD(ngrid)) |
---|
40 | |
---|
41 | end subroutine allocate_comm_wrf |
---|
42 | |
---|
43 | subroutine deallocate_comm_wrf |
---|
44 | implicit none |
---|
45 | deallocate(comm_HR_SW) |
---|
46 | deallocate(comm_HR_LW) |
---|
47 | deallocate(comm_HR_DYN) |
---|
48 | deallocate(comm_SWDOWNZ) |
---|
49 | deallocate(comm_MTOT) |
---|
50 | deallocate(comm_GEOP) |
---|
51 | deallocate(comm_ALBEQ) |
---|
52 | deallocate(comm_FLUXTOP_DN) |
---|
53 | deallocate(comm_FLUXABS_SW) |
---|
54 | deallocate(comm_FLUXTOP_LW) |
---|
55 | deallocate(comm_FLUXSURF_SW) |
---|
56 | deallocate(comm_FLUXSURF_LW) |
---|
57 | deallocate(comm_FLXGRD) |
---|
58 | |
---|
59 | end subroutine deallocate_comm_wrf |
---|
60 | |
---|
61 | end module comm_wrf |
---|
62 | |
---|