source: trunk/LMDZ.MARS/libf/phymars/comsaison_h.F90 @ 1885

Last change on this file since 1885 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: 616 bytes
Line 
1module comsaison_h
2
3implicit none
4
5  logical,save :: callsais
6  integer,save :: isaison
7  real,save :: dist_sol
8  real,save :: declin
9  real,save,allocatable :: mu0(:)
10  real,save,allocatable :: fract(:)
11
12contains
13
14  subroutine ini_comsaison_h(ngrid)
15 
16  implicit none
17  integer,intent(in) :: ngrid ! number of atmospheric columns
18 
19    allocate(mu0(ngrid))
20    allocate(fract(ngrid))
21 
22  end subroutine ini_comsaison_h
23
24
25  subroutine end_comsaison_h
26
27  implicit none
28
29    if (allocated(mu0)) deallocate(mu0)
30    if (allocated(fract)) deallocate(fract)
31
32  end subroutine end_comsaison_h
33 
34end module comsaison_h
Note: See TracBrowser for help on using the repository browser.