source: trunk/LMDZ.MARS/libf/phymars/conc_mod.F90 @ 3026

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: 992 bytes
RevLine 
[1047]1module conc_mod
2
3implicit none
4
5  real,save,allocatable :: mmean(:,:)  ! mean molecular mass of the atmosphere
6  real,save,allocatable :: Akknew(:,:) ! thermal conductivity cofficient
7  real,save,allocatable :: cpnew(:,:)  ! specicic heat
8  real,save,allocatable :: rnew(:,:)   ! specific gas constant
[2578]9
10!$OMP THREADPRIVATE(mmean,Akknew,cpnew,rnew)
[1047]11 
12contains
13
14  subroutine ini_conc_mod(ngrid,nlayer)
15 
16  implicit none
17  integer,intent(in) :: ngrid ! number of atmospheric columns
18  integer,intent(in) :: nlayer ! number of atmospheric levels
19 
20    allocate(mmean(ngrid,nlayer))
21    allocate(Akknew(ngrid,nlayer))
22    allocate(cpnew(ngrid,nlayer))
23    allocate(rnew(ngrid,nlayer))
24   
25  end subroutine ini_conc_mod
26
[1770]27
28  subroutine end_conc_mod
29
30  implicit none
31
32    if (allocated(mmean)) deallocate(mmean)
33    if (allocated(Akknew)) deallocate(Akknew)
34    if (allocated(cpnew)) deallocate(cpnew)
35    if (allocated(rnew)) deallocate(rnew)
36
37  end subroutine end_conc_mod
38
[1047]39end module conc_mod
Note: See TracBrowser for help on using the repository browser.