Skip to content

Commit

Permalink
Update comment on number concentration calculation to be clearer and …
Browse files Browse the repository at this point in the history
…clarify we have another check later in physics_update().
  • Loading branch information
jatkinson1000 committed Sep 12, 2024
1 parent 6adda9c commit 74cbc69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/physics/cam/yog_intr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ subroutine yog_tend(ztodt, state, ptend)
call outfld('YOGDLIQ ',ptend%q(1,1,ixcldliq) ,pcols ,lchnk )
call outfld('YOGPREC ',yog_precsfc ,pcols ,lchnk )

! Update the number concentration tendencies for liquid and ice species
! Values taken to match those in the `clubb_tend_cam()` subroutine
! YOG can produce negative number tendency, but we must ensure it doesn't reduce total
! number concentration below 0.0
! Update the number concentration tendencies for liquid and ice species for all cells
! Match calculations in the `clubb_tend_cam()` subroutine
! YOG could produce negative number tendency, so we ensure it doesn't reduce total
! number concentration below 0.0 - note that a check on this is also made in physics_update()
call cnst_get_ind('NUMLIQ', ixnumliq)
call cnst_get_ind('NUMICE', ixnumice)
do k = 1, pver
Expand Down

0 comments on commit 74cbc69

Please sign in to comment.