source: trunk/LMDZ.MARS/libf/phymars/slope_mod.F90 @ 1911

Last change on this file since 1911 was 1770, checked in by aslmd, 7 years ago

LMDZ.MARS setting the stage for maybe fixing nesting in the LMD_MM_MARS 1. add the possibility to deallocate common modules with subroutines

File size: 587 bytes
Line 
1module slope_mod
2
3implicit none
4
5  real,save,allocatable :: theta_sl(:) ! slope angle versus horizontal (deg)
6  real,save,allocatable :: psi_sl(:)   ! slope orientation (deg)
7
8contains
9
10  subroutine ini_slope_mod(ngrid)
11 
12  implicit none
13  integer,intent(in) :: ngrid ! number of atmospheric columns
14 
15  allocate(theta_sl(ngrid))
16  allocate(psi_sl(ngrid))
17 
18  end subroutine ini_slope_mod
19
20
21  subroutine end_slope_mod
22
23  implicit none
24
25  if (allocated(theta_sl)) deallocate(theta_sl)
26  if (allocated(psi_sl)) deallocate(psi_sl)
27
28  end subroutine end_slope_mod
29 
30end module slope_mod
Note: See TracBrowser for help on using the repository browser.