Ignore:
Timestamp:
Mar 31, 2023, 8:42:57 PM (20 months ago)
Author:
lguez
Message:

Merge LMDZ_ECRad branch back into trunk!

Location:
LMDZ6/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk

  • LMDZ6/trunk/libf/phylmd/ecrad/radiation_ice_optics_fu.F90

    r3908 r4489  
    6161    real (jprb) :: iwp_gm_2
    6262
     63    integer :: jb
    6364    !real(jprb)  :: hook_handle
    6465
     
    7071    iwp_gm_2  = ice_wp * 1000.0_jprb
    7172
    72     od = iwp_gm_2 * (coeff(1:nb,1) + coeff(1:nb,2) * inv_de_um)
    73     scat_od = od * (1.0_jprb - (coeff(1:nb,3) + de_um*(coeff(1:nb,4) &
    74          &  + de_um*(coeff(1:nb,5) + de_um*coeff(1:nb,6)))))
    75     g = min(coeff(1:nb,7) + de_um*(coeff(1:nb,8) &
    76          &  + de_um*(coeff(1:nb,9) + de_um*coeff(1:nb,10))), &
     73! Added for DWD (2020)
     74!NEC$ shortloop
     75    do jb = 1, nb
     76      od(jb) = iwp_gm_2 * (coeff(jb,1) + coeff(jb,2) * inv_de_um)
     77      scat_od(jb) = od(jb) * (1.0_jprb - (coeff(jb,3) + de_um*(coeff(jb,4) &
     78         &  + de_um*(coeff(jb,5) + de_um*coeff(jb,6)))))
     79      g(jb) = min(coeff(jb,7) + de_um*(coeff(jb,8) &
     80         &  + de_um*(coeff(jb,9) + de_um*coeff(jb,10))), &
    7781         &  MaxAsymmetryFactor)
     82    end do
    7883
    7984    !if (lhook) call dr_hook('radiation_ice_optics:calc_ice_optics_fu_sw',1,hook_handle)
     
    106111    real (jprb) :: iwp_gm_2
    107112
     113    integer :: jb
    108114    !real(jprb)  :: hook_handle
    109115
     
    116122    iwp_gm_2  = ice_wp * 1000.0_jprb
    117123
    118     od = iwp_gm_2 * (coeff(1:nb,1) + inv_de_um*(coeff(1:nb,2) &
    119          &  + inv_de_um*coeff(1:nb,3)))
    120     scat_od = od - iwp_gm_2*inv_de_um*(coeff(1:nb,4) + de_um*(coeff(1:nb,5) &
    121          &  + de_um*(coeff(1:nb,6) + de_um*coeff(1:nb,7))))
    122     g = min(coeff(1:nb,8) + de_um*(coeff(1:nb,9) &
    123          &  + de_um*(coeff(1:nb,10) + de_um*coeff(1:nb,11))), &
     124! Added for DWD (2020)
     125!NEC$ shortloop
     126    do jb = 1, nb
     127      od(jb) = iwp_gm_2 * (coeff(jb,1) + inv_de_um*(coeff(jb,2) &
     128         &  + inv_de_um*coeff(jb,3)))
     129      scat_od(jb) = od(jb) - iwp_gm_2*inv_de_um*(coeff(jb,4) + de_um*(coeff(jb,5) &
     130         &  + de_um*(coeff(jb,6) + de_um*coeff(jb,7))))
     131      g(jb) = min(coeff(jb,8) + de_um*(coeff(jb,9) &
     132         &  + de_um*(coeff(jb,10) + de_um*coeff(jb,11))), &
    124133         &  MaxAsymmetryFactor)
     134    end do
    125135
    126136    !if (lhook) call dr_hook('radiation_ice_optics:calc_ice_optics_fu_lw',1,hook_handle)
Note: See TracChangeset for help on using the changeset viewer.