Changeset 2534 for trunk/LMDZ.VENUS/libf/phyvenus/turb_mod.F90
- Timestamp:
- Jun 9, 2021, 9:38:56 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.VENUS/libf/phyvenus/turb_mod.F90
r1723 r2534 4 4 REAL,SAVE,ALLOCATABLE :: q2(:,:) ! Turbulent Kinetic Energy 5 5 REAL,SAVE,ALLOCATABLE :: sens(:) 6 REAL,allocatable,SAVE :: l0(:) 6 REAL,allocatable,SAVE :: l0(:) ! Characteristic mixing length 7 7 REAL,SAVE,ALLOCATABLE :: yustar(:) 8 8 REAL,SAVE,ALLOCATABLE :: wstar(:) … … 15 15 ! mostly for LES use. default is FALSE (for GCM and mesoscale) 16 16 17 !contains17 contains 18 18 19 !subroutine ini_turb_mod(ngrid,nlayer)19 subroutine ini_turb_mod(ngrid,nlayer) 20 20 21 !implicit none22 !integer,intent(in) :: ngrid ! number of atmospheric columns23 !integer,intent(in) :: nlayer ! number of atmospheric layers21 implicit none 22 integer,intent(in) :: ngrid ! number of atmospheric columns 23 integer,intent(in) :: nlayer ! number of atmospheric layers 24 24 25 ! allocate(q2(ngrid,nlayer+1)) 26 ! allocate(l0(ngrid)) 27 ! allocate(wstar(ngrid)) 28 ! allocate(ustar(ngrid)) 29 ! allocate(tstar(ngrid)) 30 ! allocate(hfmax_th(ngrid)) 31 ! allocate(zmax_th(ngrid)) 25 allocate(q2(ngrid,nlayer+1)) 26 allocate(sens(ngrid)) 27 allocate(l0(ngrid)) 28 allocate(wstar(ngrid)) 29 allocate(yustar(ngrid)) 30 allocate(tstar(ngrid)) 31 allocate(hfmax_th(ngrid)) 32 allocate(zmax_th(ngrid)) 32 33 ! allocate(sensibFlux(ngrid)) 33 34 34 ! end subroutine ini_turb_mod 35 end subroutine ini_turb_mod 36 37 subroutine end_turb_mod 38 39 implicit none 40 41 if (allocated(q2)) deallocate(q2) 42 if (allocated(sens)) deallocate(sens) 43 if (allocated(l0)) deallocate(l0) 44 if (allocated(wstar)) deallocate(wstar) 45 if (allocated(yustar)) deallocate(yustar) 46 if (allocated(tstar)) deallocate(tstar) 47 if (allocated(hfmax_th)) deallocate(hfmax_th) 48 if (allocated(zmax_th)) deallocate(zmax_th) 49 ! if (allocated(sensibFlux)) deallocate(sensibFlux) 50 51 end subroutine end_turb_mod 52 35 53 36 54 end module turb_mod
Note: See TracChangeset
for help on using the changeset viewer.