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

Last change on this file since 2578 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: 863 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  real,save,allocatable :: local_time(:) ! local solar time as fraction of day (0,1)
12
13!$OMP THREADPRIVATE(callsais,isaison,dist_sol,declin,mu0,fract,local_time)
14
15contains
16
17  subroutine ini_comsaison_h(ngrid)
18 
19  implicit none
20  integer,intent(in) :: ngrid ! number of atmospheric columns
21 
22    allocate(mu0(ngrid))
23    allocate(fract(ngrid))
24    allocate(local_time(ngrid))
25 
26  end subroutine ini_comsaison_h
27
28
29  subroutine end_comsaison_h
30
31  implicit none
32
33    if (allocated(mu0)) deallocate(mu0)
34    if (allocated(fract)) deallocate(fract)
35    if (allocated(local_time)) deallocate(local_time)
36
37  end subroutine end_comsaison_h
38 
39end module comsaison_h
Note: See TracBrowser for help on using the repository browser.