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

Last change on this file since 2616 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
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
8!$OMP THREADPRIVATE(theta_sl,psi_sl)
9
10contains
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
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
31 
32end module slope_mod
Note: See TracBrowser for help on using the repository browser.