Last change
on this file since 1922 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
|
Rev | Line | |
---|
[1047] | 1 | module slope_mod |
---|
| 2 | |
---|
| 3 | implicit none |
---|
| 4 | |
---|
| 5 | real,save,allocatable :: theta_sl(:) ! slope angle versus horizontal (deg) |
---|
| 6 | real,save,allocatable :: psi_sl(:) ! slope orientation (deg) |
---|
| 7 | |
---|
| 8 | contains |
---|
| 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 |
---|
[1770] | 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 |
---|
[1047] | 29 | |
---|
| 30 | end module slope_mod |
---|
Note: See
TracBrowser
for help on using the repository browser.