Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (2 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/Dust/lsc_scav_spl.F90

    r5082 r5099  
    1212  USE traclmdz_mod
    1313  USE infotrac,ONLY : nbtr
    14 !  USE comgeomphy
    1514  USE iophy
     15  USE lmdz_yomcst
    1616  IMPLICIT NONE
    1717!=====================================================================
     
    2525  include "dimensions.h"
    2626  include "chem.h"
    27   include "YOMCST.h"
    28   include "YOECUMF.h"
     27  include "YOECUMF.h"
    2928
    3029  REAL,INTENT(IN)                        :: pdtime ! time step (s)
     
    5655 LOGICAL,SAVE :: debut=.true.
    5756!$OMP THREADPRIVATE(debut)
    58 !
     57
    5958!JE  REAL,PARAMETER :: henry=1.4  ! constante de Henry en mol/l/atm ~1.4 for gases
    6059  REAL,DIMENSION(nbtr) :: henry  ! constante de Henry en mol/l/atm ~1.4 for gases
     
    9998  REAL           :: pr, ps, ice, water
    10099  real :: conserv
    101 !
     100
    102101!!!!!!!!!!!!!!!!!!!! choix lessivage !!!!!!!!!!!!!!!!!!!!!!!!
    103102!!  logical,save  :: inscav_fisrt
    104103!!! $OMP THREADPRIVATE(inscav_first)
    105 !
     104
    106105!!!!!!!!!!!!!!!!!!!!!!!!!!!
    107106  IF (debut) THEN
    108 !
     107
    109108!  inscav_fisrt=.true.
    110109!  call getin('inscav_fisrt',inscav_fisrt)
     
    114113!   print*,'beta from Reddy and Bocuher 2004 (original version), inscav_fisrt=',inscav_fisrt
    115114!  endif
    116 !
     115
    117116!JE      alpha_r=0.001        !  coefficient d'impaction pour la pluie
    118117!JE      alpha_s=0.01         !  coefficient d'impaction pour la neige 
     
    123122!     frac_aer=0.5 ~ droplet size shrinks by evap
    124123      frac_aer=0.5
    125 !
    126124
    127125!JE to speed up, commented 20140219
    128 !
     126
    129127!      OPEN(99,file='lsc_scav_param.data',status='old', &
    130128!                form='formatted',err=9999)
     
    139137!      CLOSE(99)
    140138!9999  Continue
    141 !
     139
    142140!   print*,'JE alpha_r',alpha_r
    143141!   print*,'JE alpha_s',alpha_s
     
    147145!   print*,'frac_coar_scav',frac_coar_scav
    148146!   print*,'frac_aer ev',frac_aer
    149 !
     147
    150148! JE endcomment
    151 !
     149
    152150  ENDIF !(debut)
    153151!!!!!!!!!!!!!!!!!!!!!!!!!!!
    154 !
     152
    155153! initialization
    156154  dxin=0.
     
    223221   endif ! (iflag_lscav .eq. 4)
    224222   beta_v1(i,k)=beta    !! for output
    225 !
     223
    226224      dxin=tr_seri(i,k,it)*(exp(-scav(i,k)*beta*pdtime)-1.)
    227225!      his_dh(i)=his_dh(i)-dxin*zrho(i,k)*zdz(i,k)/pdtime !  kg/m2/s
Note: See TracChangeset for help on using the changeset viewer.