source: trunk/LMDZ.GENERIC/libf/phystd/turb_mod.F90 @ 1980

Last change on this file since 1980 was 1883, checked in by emillour, 7 years ago

Generic GCM:

  • fix rcm1d.F to cope with modifications introduced in revision 1835-1836
  • also add some missing threadprivate OpenMP directives in phys_state_var_mod and turb_mod

EM

File size: 1.1 KB
Line 
1module turb_mod
2
3  !! variables
4  REAL,SAVE,ALLOCATABLE :: q2(:,:)    ! Turbulent Kinetic Energy
5  REAL,allocatable,SAVE :: l0(:)
6!$OMP THREADPRIVATE(q2,l0)
7  REAL,SAVE,ALLOCATABLE :: ustar(:)
8  REAL,SAVE,ALLOCATABLE :: wstar(:)
9  REAL,SAVE,ALLOCATABLE :: tstar(:)
10!$OMP THREADPRIVATE(ustar,wstar,tstar)
11  REAL,SAVE,ALLOCATABLE :: hfmax_th(:)
12  REAL,SAVE,ALLOCATABLE :: zmax_th(:)
13!$OMP THREADPRIVATE(hfmax_th,zmax_th)
14  REAL,SAVE,ALLOCATABLE :: sensibFlux(:)
15  LOGICAL,SAVE :: turb_resolved = .false.
16!$OMP THREADPRIVATE(sensibFlux,turb_resolved)
17      ! this is a flag to say 'turbulence is resolved'
18      ! mostly for LES use. default is FALSE (for GCM and mesoscale)
19
20!contains
21
22!  subroutine ini_turb_mod(ngrid,nlayer)
23
24!  implicit none
25!  integer,intent(in) :: ngrid ! number of atmospheric columns
26!  integer,intent(in) :: nlayer ! number of atmospheric layers
27
28!    allocate(q2(ngrid,nlayer+1))
29!    allocate(l0(ngrid))
30!    allocate(wstar(ngrid))
31!   allocate(ustar(ngrid))
32!   allocate(tstar(ngrid))
33!   allocate(hfmax_th(ngrid))
34!   allocate(zmax_th(ngrid))
35!   allocate(sensibFlux(ngrid))
36
37!  end subroutine ini_turb_mod
38
39end module turb_mod
Note: See TracBrowser for help on using the repository browser.