Ignore:
Timestamp:
Feb 21, 2023, 3:26:41 PM (20 months ago)
Author:
idelkadi
Message:

Update of the ECRAD radiative code version implemented in the LMDZ model.
Upgrade to the :
https://github.com/ecmwf/ecrad/trunk
Version svn : 749
UUID du dépôt : 44b0ca93-0ed8-356e-d663-ce57b7db7bff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/radiation_liquid_optics_socrates.F90

    r3908 r4444  
    5252    real(jprb), intent(out) :: od(nb), scat_od(nb), g(nb)
    5353
     54    integer    :: jb
    5455    ! Local effective radius (m), after applying bounds
    5556    real(jprb) :: re
     
    6263    re = max(MinEffectiveRadius, min(re_in, MaxEffectiveRadius))
    6364
    64     od = lwp * (coeff(1:nb,1) + re*(coeff(1:nb,2) + re*coeff(1:nb,3))) &
    65          &  / (1.0_jprb + re*(coeff(1:nb,4) + re*(coeff(1:nb,5) &
    66          &  + re*coeff(1:nb,6))))
    67     scat_od = od * (1.0_jprb &
    68          &  - (coeff(1:nb,7) + re*(coeff(1:nb,8) + re*coeff(1:nb,9))) &
    69          &  / (1.0_jprb + re*(coeff(1:nb,10) + re*coeff(1:nb,11))))
    70     g = (coeff(1:nb,12) + re*(coeff(1:nb,13) + re*coeff(1:nb,14))) &
    71          &  / (1.0_jprb + re*(coeff(1:nb,15) + re*coeff(1:nb,16)))
     65! Added for DWD (2020)
     66!NEC$ shortloop
     67    do jb = 1, nb
     68      od(jb) = lwp * (coeff(jb,1) + re*(coeff(jb,2) + re*coeff(jb,3))) &
     69         &  / (1.0_jprb + re*(coeff(jb,4) + re*(coeff(jb,5) &
     70         &  + re*coeff(jb,6))))
     71      scat_od(jb) = od(jb) * (1.0_jprb &
     72         &  - (coeff(jb,7) + re*(coeff(jb,8) + re*coeff(jb,9))) &
     73         &  / (1.0_jprb + re*(coeff(jb,10) + re*coeff(jb,11))))
     74      g(jb) = (coeff(jb,12) + re*(coeff(jb,13) + re*coeff(jb,14))) &
     75         &  / (1.0_jprb + re*(coeff(jb,15) + re*coeff(jb,16)))
     76    end do
    7277
    7378    !if (lhook) call dr_hook('radiation_liquid_optics_socrates:calc_liq_optics_socrates',1,hook_handle)
Note: See TracChangeset for help on using the changeset viewer.