Ignore:
Timestamp:
Dec 14, 2015, 11:43:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2298:2396 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/phys_state_var_mod.F90

    r2298 r2408  
    4848      REAL, ALLOCATABLE, SAVE :: radsol(:)
    4949!$OMP THREADPRIVATE(radsol)
     50      REAL, ALLOCATABLE, SAVE :: swradcorr(:)
     51!$OMP THREADPRIVATE(swradcorr)
    5052
    5153!clesphy0 param physiq
     
    395397!!! fin nrlmd le 10/04/2012
    396398
    397       REAL, ALLOCATABLE, SAVE:: du_gwd_rando(:, :), dv_gwd_rando(:, :)
    398       !$OMP THREADPRIVATE(du_gwd_rando, dv_gwd_rando)
     399      REAL, ALLOCATABLE, SAVE:: du_gwd_rando(:, :), du_gwd_front(:, :)
     400      !$OMP THREADPRIVATE(du_gwd_rando, du_gwd_front)
    399401      ! tendencies on wind due to gravity waves
    400402
     
    404406SUBROUTINE phys_state_var_init(read_climoz)
    405407USE dimphy
    406 USE control_mod
    407408USE aero_mod
    408 USE infotrac, ONLY : nbtr
     409USE infotrac_phy, ONLY : nbtr
    409410USE indice_sol_mod
    410411IMPLICIT NONE
     
    434435      ALLOCATE(solsw(klon), sollw(klon))
    435436      ALLOCATE(radsol(klon))
     437      ALLOCATE(swradcorr(klon))
    436438      ALLOCATE(zmea(klon), zstd(klon), zsig(klon), zgam(klon))
    437439      ALLOCATE(zthe(klon), zpic(klon), zval(klon))
     
    581583      ALLOCATE(ale_bl_trig(klon))
    582584!!! fin nrlmd le 10/04/2012
    583       if (ok_gwd_rando) allocate(du_gwd_rando(klon, klev), &
    584            dv_gwd_rando(klon, klev))
     585      if (ok_gwd_rando) allocate(du_gwd_rando(klon, klev))
     586      if (.not. ok_hines .and. ok_gwd_rando) allocate(du_gwd_front(klon, klev))
    585587
    586588END SUBROUTINE phys_state_var_init
     
    589591SUBROUTINE phys_state_var_end
    590592USE dimphy
    591 USE control_mod
    592593USE indice_sol_mod
    593594IMPLICIT NONE
     
    596597      deallocate(rlat, rlon, pctsrf, ftsol, falb1, falb2)
    597598      deallocate(qsol,fevap,z0m,z0h,agesno)
    598       deallocate(rain_fall, snow_fall, solsw, sollw, radsol)
     599      deallocate(rain_fall, snow_fall, solsw, sollw, radsol, swradcorr)
    599600      deallocate(zmea, zstd, zsig, zgam)
    600601      deallocate(zthe, zpic, zval)
     
    705706      deallocate(tau_aero_lw_rrtm,piz_aero_lw_rrtm,cg_aero_lw_rrtm)
    706707      deallocate(ccm)
    707       if (ok_gwd_rando) deallocate(du_gwd_rando, dv_gwd_rando)
     708      if (ok_gwd_rando) deallocate(du_gwd_rando)
     709      if (.not. ok_hines .and. ok_gwd_rando) deallocate(du_gwd_front)
    708710       
    709711!!! nrlmd le 10/04/2012
Note: See TracChangeset for help on using the changeset viewer.