Last change
on this file since 3026 was
2578,
checked in by romain.vande, 3 years ago
|
First stage of implementing Open_MP in the physic.
So far it can initialyse physic and run with all routines at .FALSE.
|
File size:
625 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 | |
---|
[2578] | 8 | !$OMP THREADPRIVATE(theta_sl,psi_sl) |
---|
| 9 | |
---|
[1047] | 10 | contains |
---|
| 11 | |
---|
| 12 | subroutine ini_slope_mod(ngrid) |
---|
| 13 | |
---|
| 14 | implicit none |
---|
| 15 | integer,intent(in) :: ngrid ! number of atmospheric columns |
---|
| 16 | |
---|
| 17 | allocate(theta_sl(ngrid)) |
---|
| 18 | allocate(psi_sl(ngrid)) |
---|
| 19 | |
---|
| 20 | end subroutine ini_slope_mod |
---|
[1770] | 21 | |
---|
| 22 | |
---|
| 23 | subroutine end_slope_mod |
---|
| 24 | |
---|
| 25 | implicit none |
---|
| 26 | |
---|
| 27 | if (allocated(theta_sl)) deallocate(theta_sl) |
---|
| 28 | if (allocated(psi_sl)) deallocate(psi_sl) |
---|
| 29 | |
---|
| 30 | end subroutine end_slope_mod |
---|
[1047] | 31 | |
---|
| 32 | end module slope_mod |
---|
Note: See
TracBrowser
for help on using the repository browser.