Skip to content

Commit

Permalink
Merge pull request #521 from GEOS-ESM/feature/pnorris/#520-negative-t…
Browse files Browse the repository at this point in the history
…auaer-ocurring-in-RRTMG-LW

Simple fix to prevent negative tauaer in RRTMG LW
  • Loading branch information
sdrabenh committed Feb 3, 2022
2 parents d5ae28c + 1e5899a commit 67303bd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3303,7 +3303,11 @@ subroutine Lw_Driver(IM,JM,LM,LATS,LONS,CoresPerNode,RC)
! aerosol system's *un*-normalized single scattering albedo,
! which is actually tau_ext * omega0 = tau_scat, and TAUA
! is the aerosol extinction optical thickness.
TAUAER(IJ,K,:) = TAUA(I,J,LV,:) - SSAA(I,J,LV,:)
! PMN 2022-01-19 Added max(,0.) ... it shouldn't happen
! that tau_ext < tau_scat, but since these TAUA and SSAA
! come directly from the radiatively active aerosols
! system, we provide a simple mitigation here.
TAUAER(IJ,K,:) = max(TAUA(I,J,LV,:) - SSAA(I,J,LV,:), 0.)

enddo

Expand Down

0 comments on commit 67303bd

Please sign in to comment.