Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (4 months ago)
Author:
abarral
Message:

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/phys_local_var_mod.F90

    r5098 r5099  
    1 !
     1
    22! $Id$
    3 !
     3
    44MODULE phys_local_var_mod
    55  USE lmdz_cppkeys_wrapper, ONLY : CPPKEY_STRATAER
    66  ! Variables locales pour effectuer les appels en serie
    77  !======================================================================
    8   !
    9   !
     8
     9
    1010  !======================================================================
    1111  ! Declaration des variables
     
    206206  REAL, SAVE, ALLOCATABLE :: ZFSDN0(:, :), ZFSUP0(:, :)      ! diag
    207207  !$OMP THREADPRIVATE(ZFSDN0,ZFSUP0)
    208   !
     208
    209209  REAL, SAVE, ALLOCATABLE :: stratomask(:, :)
    210210  !$OMP THREADPRIVATE(stratomask)
     
    389389  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: s_lcl, s_pblh, s_pblt, s_therm
    390390  !$OMP THREADPRIVATE(s_lcl, s_pblh, s_pblt, s_therm)
    391   !
     391
    392392  !nrlmd+jyg<
    393393  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: s_pblh_x, s_pblh_w
     
    396396  !$OMP THREADPRIVATE(s_lcl_x, s_lcl_w)
    397397  !>nrlmd+jyg
    398   !
     398
    399399  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: slab_wfbils
    400400  !$OMP THREADPRIVATE(slab_wfbils)
     
    426426!$OMP THREADPRIVATE(xtrain_lsc)
    427427#endif
    428   !
     428
    429429  !jyg+nrlmd<
    430430  !!!ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
     
    476476  !$OMP THREADPRIVATE(ratqsc)
    477477  !>jyg+nrlmd
    478   !
     478
    479479  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: wbeff, convoccur, zmax_th, zq2m, zt2m
    480480  !$OMP THREADPRIVATE(wbeff, convoccur, zmax_th, zq2m, zt2m)
     
    503503  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: epmax_diag ! epmax_cape
    504504  !$OMP THREADPRIVATE(epmax_diag)
    505   !
     505
    506506  !  Deep convective variables used in phytrac
    507507  REAL, ALLOCATABLE, SAVE, DIMENSION(:, :) :: ep ! epmax_cape
     
    577577#endif
    578578#endif
    579   !
     579
    580580  !      REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: coefh, coefm, lambda_th
    581581  REAL, ALLOCATABLE, SAVE, DIMENSION(:, :) :: lambda_th
     
    713713  !$OMP THREADPRIVATE(dqsfreez)
    714714
    715 
    716 
    717 
    718 
    719   !
    720715  ! variables for stratospheric aerosol
    721716  REAL, ALLOCATABLE, SAVE, DIMENSION(:, :) :: d_q_emiss
     
    773768  REAL, ALLOCATABLE, SAVE, DIMENSION(:, :, :) :: nd_mode
    774769  !$OMP THREADPRIVATE(nd_mode)
    775   !
     770
    776771  !---3D budget variables
    777772  REAL, ALLOCATABLE, SAVE, DIMENSION(:, :) :: budg_3D_nucl
     
    787782  REAL, ALLOCATABLE, SAVE, DIMENSION(:, :) :: budg_3D_backgr_so2
    788783  !$OMP THREADPRIVATE(budg_3D_backgr_so2)
    789   !
     784
    790785  !---2D budget variables
    791786  REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: budg_dep_dry_ocs
     
    920915    ZFLDN0 = 0.
    921916    ALLOCATE(ZFLUP0(klon, klev + 1), ZFSDN0(klon, klev + 1), ZFSUP0(klon, klev + 1))
    922     !
     917
    923918    ALLOCATE(topswad_aero(klon), solswad_aero(klon))
    924919    ALLOCATE(topswai_aero(klon), solswai_aero(klon))
     
    10401035    ALLOCATE(s_lcl(klon))
    10411036    ALLOCATE(s_pblh(klon), s_pblt(klon), s_therm(klon))
    1042     !
     1037
    10431038    !nrlmd+jyg<
    10441039    ALLOCATE(s_pblh_x(klon), s_pblh_w(klon))
    10451040    ALLOCATE(s_lcl_x(klon), s_lcl_w(klon))
    10461041    !>nrlmd+jyg
    1047     !
     1042
    10481043    ALLOCATE(slab_wfbils(klon), tpot(klon), tpote(klon), ue(klon))
    10491044    ALLOCATE(uq(klon), ve(klon), vq(klon), zxffonte(klon))
     
    10571052    ALLOCATE(rain_num(klon))
    10581053    ALLOCATE(qlth(klon, klev), qith(klon, klev), qsith(klon, klev), wiceth(klon, klev))
    1059     !
     1054
    10601055#ifdef ISO
    10611056      ALLOCATE(xtevap(ntraciso,klon))
     
    10701065      runoff_diag(:)=0. ; xtrunoff_diag(:,:)=0. ! because variables are only given values on knon grid points
    10711066#endif
    1072     !
     1067
    10731068    ALLOCATE(sens_x(klon), sens_w(klon))
    10741069    ALLOCATE(zxfluxlat_x(klon), zxfluxlat_w(klon))
     
    10931088      ALLOCATE(xt_therm(ntraciso,klon,klev))
    10941089#endif
    1095     !
     1090
    10961091    ALLOCATE(ptconv(klon, klev))
    10971092    ALLOCATE(ratqsc(klon, klev))
    1098     !
     1093
    10991094    ALLOCATE(wbeff(klon), convoccur(klon), zmax_th(klon))
    11001095    ALLOCATE(zq2m(klon), zt2m(klon), weak_inversion(klon))
     
    11311126    ! FC
    11321127    ALLOCATE(zxfluxq(klon, klev), zxfluxt(klon, klev))
    1133     !
     1128
    11341129    !  Deep convective variables used in phytrac
    11351130    ALLOCATE(pmflxr(klon, klev + 1), pmflxs(klon, klev + 1))
     
    14361431    DEALLOCATE(tal1, pal1, pab1, pab2)
    14371432    DEALLOCATE(ptstar, pt0, slp)
    1438     !
     1433
    14391434    DEALLOCATE(alp_wake)
    14401435    DEALLOCATE(wake_h, wake_k)
     
    14541449      DEALLOCATE(d_deltaxt_vdf)
    14551450#endif
    1456     !
     1451
    14571452    DEALLOCATE(bils)
    14581453    DEALLOCATE(cdragm, cdragh, cldh, cldl)
     
    14621457    DEALLOCATE(prw, prlw, prsw, prbsw, water_budget, zustar, zu10m, zv10m, rh2m, s_lcl)
    14631458    DEALLOCATE(s_pblh, s_pblt, s_therm)
    1464     !
     1459
    14651460    !nrlmd+jyg<
    14661461    DEALLOCATE(s_pblh_x, s_pblh_w)
    14671462    DEALLOCATE(s_lcl_x, s_lcl_w)
    14681463    !>nrlmd+jyg
    1469     !
     1464
    14701465    DEALLOCATE(slab_wfbils, tpot, tpote, ue)
    14711466    DEALLOCATE(uq, ve, vq, zxffonte)
     
    14781473    DEALLOCATE(rain_num)
    14791474    DEALLOCATE(qlth, qith, qsith, wiceth)
    1480     !
     1475
    14811476    DEALLOCATE(sens_x, sens_w)
    14821477    DEALLOCATE(zxfluxlat_x, zxfluxlat_w)
     
    15031498      DEALLOCATE(h1_diag,runoff_diag,xtrunoff_diag)
    15041499#endif
    1505     !
     1500
    15061501    DEALLOCATE(ptconv)
    15071502    DEALLOCATE(ratqsc)
    1508     !
     1503
    15091504    DEALLOCATE(wbeff, convoccur, zmax_th)
    15101505    DEALLOCATE(zq2m, zt2m, weak_inversion)
Note: See TracChangeset for help on using the changeset viewer.