Ignore:
Timestamp:
Feb 21, 2023, 3:26:41 PM (17 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_delta_eddington.h

    r3908 r4444  
    1 ! radiation_delta_eddington.h - Delta-Eddington scaling
     1! radiation_delta_eddington.h - Delta-Eddington scaling -*- f90 -*-
    22!
    33! (C) Copyright 2015- ECMWF.
     
    9292end subroutine delta_eddington_scat_od
    9393
     94
     95!---------------------------------------------------------------------
     96! Revert delta-Eddington-scaled quantities in-place, back to their
     97! original state
     98elemental subroutine revert_delta_eddington(od, ssa, g)
     99
     100  use parkind1, only : jprb
     101 
     102  ! Total optical depth, single scattering albedo and asymmetry
     103  ! factor
     104  real(jprb), intent(inout) :: od, ssa, g
     105 
     106  ! Fraction of the phase function deemed to be in the forward lobe
     107  ! and therefore treated as if it is not scattered at all
     108  real(jprb) :: f
     109 
     110  g   = g / (1.0_jprb - g)
     111  f   = g*g
     112  ssa = ssa / (1.0_jprb - f + f*ssa);
     113  od  = od / (1.0_jprb - ssa*f)
     114 
     115end subroutine revert_delta_eddington
Note: See TracChangeset for help on using the changeset viewer.