Ignore:
Timestamp:
Sep 27, 2016, 6:02:46 PM (8 years ago)
Author:
jyg
Message:

Some cleaning in the wake routines: (i) the wake
number per unit area (wdens) is now a state
variable (held constant for the time being);
(ii) wake state variable changes are computed in
subroutine 'physiq' if iflag_wake_tend=1 (it is
computed within wake routines if
iflag_wake_tend=0, consistent with earlier
versions); (iii) the new routine 'add_wake_tend'
adds tendencies to wake state variables; (iv)
tendencies due to various processes (pbl, wakes,
thermals) are named and added separately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/phys_state_var_mod.F90

    r2499 r2635  
    203203      REAL,ALLOCATABLE,SAVE :: cin(:)
    204204!$OMP THREADPRIVATE(cin)
    205 ! ftd : differential heating between wake and environment
     205! ftd : convective heating due to unsaturated downdraughts
    206206      REAL,ALLOCATABLE,SAVE :: ftd(:,:)
    207207!$OMP THREADPRIVATE(ftd)
    208 ! fqd : differential moistening between wake and environment
     208! fqd : convective moistening due to unsaturated downdraughts
    209209      REAL,ALLOCATABLE,SAVE :: fqd(:,:)     
    210210!$OMP THREADPRIVATE(fqd)
     
    232232! wake_deltat : ecart de temperature avec la zone non perturbee
    233233! wake_deltaq : ecart d'humidite avec la zone non perturbee
     234! wake_s      : fraction surfacique occupee par la poche froide
     235! wake_dens   : number of wakes per unit area
     236! wake_occ    : occurence of wakes (= 1 if wakes occur, =0 otherwise)
    234237! wake_Cstar  : vitesse d'etalement de la poche
    235 ! wake_s      : fraction surfacique occupee par la poche froide
    236238! wake_pe     : wake potential energy - WAPE
    237239! wake_fip    : Gust Front Impinging power - ALP
    238 ! dt_wake, dq_wake: LS tendencies due to wake
    239240      REAL,ALLOCATABLE,SAVE :: wake_deltat(:,:)
    240241!$OMP THREADPRIVATE(wake_deltat)
    241242      REAL,ALLOCATABLE,SAVE :: wake_deltaq(:,:)
    242243!$OMP THREADPRIVATE(wake_deltaq)
     244      REAL,ALLOCATABLE,SAVE :: wake_s(:)
     245!$OMP THREADPRIVATE(wake_s)
     246      REAL,ALLOCATABLE,SAVE :: wake_dens(:)
     247!$OMP THREADPRIVATE(wake_dens)
    243248      REAL,ALLOCATABLE,SAVE :: wake_Cstar(:)
    244249!$OMP THREADPRIVATE(wake_Cstar)
    245       REAL,ALLOCATABLE,SAVE :: wake_s(:)
    246 !$OMP THREADPRIVATE(wake_s)
    247250      REAL,ALLOCATABLE,SAVE :: wake_pe(:)
    248251!$OMP THREADPRIVATE(wake_pe)
    249252      REAL,ALLOCATABLE,SAVE :: wake_fip(:)
    250253!$OMP THREADPRIVATE(wake_fip)
    251       REAL,ALLOCATABLE,SAVE :: dt_wake(:,:)
    252 !$OMP THREADPRIVATE(dt_wake)
    253       REAL,ALLOCATABLE,SAVE :: dq_wake(:,:)
    254 !$OMP THREADPRIVATE(dq_wake)
    255254!
    256255!jyg<
     
    524523      ALLOCATE(wght_th(klon,klev))
    525524      ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev))
    526       ALLOCATE(wake_Cstar(klon), wake_s(klon))
     525      ALLOCATE(wake_s(klon), wake_dens(klon))
     526      ALLOCATE(wake_Cstar(klon))
    527527      ALLOCATE(wake_pe(klon), wake_fip(klon))
    528       ALLOCATE(dt_wake(klon,klev), dq_wake(klon,klev))
    529528!jyg<
    530529      ALLOCATE(wake_delta_pbl_TKE(klon,klev+1,nbsrf+1))
     
    664663      deallocate(lalim_conv, wght_th)
    665664      deallocate(wake_deltat, wake_deltaq)
    666       deallocate(wake_Cstar, wake_s, wake_pe, wake_fip)
    667       deallocate(dt_wake, dq_wake)
     665      deallocate(wake_s, wake_dens)
     666      deallocate(wake_Cstar, wake_pe, wake_fip)
    668667!jyg<
    669668      deallocate(wake_delta_pbl_TKE)
Note: See TracChangeset for help on using the changeset viewer.