- Timestamp:
- Feb 21, 2023, 3:26:41 PM (17 months ago)
- 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 -*- 2 2 ! 3 3 ! (C) Copyright 2015- ECMWF. … … 92 92 end subroutine delta_eddington_scat_od 93 93 94 95 !--------------------------------------------------------------------- 96 ! Revert delta-Eddington-scaled quantities in-place, back to their 97 ! original state 98 elemental 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 115 end subroutine revert_delta_eddington
Note: See TracChangeset
for help on using the changeset viewer.