Last change
on this file since 1776 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
|
Rev | Line | |
---|
[1047] | 1 | module comsaison_h |
---|
| 2 | |
---|
| 3 | implicit 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 | |
---|
| 12 | contains |
---|
| 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 |
---|
[1770] | 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 |
---|
[1047] | 33 | |
---|
| 34 | end module comsaison_h |
---|
Note: See
TracBrowser
for help on using the repository browser.