@@ -182,7 +182,7 @@ subroutine yog_tend(ztodt, state, ptend)
182
182
183
183
! Local variables
184
184
185
- integer :: i
185
+ integer :: i, k
186
186
integer :: nstep
187
187
integer :: ixcldice, ixcldliq ! constituent indices for cloud liquid and ice water.
188
188
integer :: lchnk ! chunk identifier
@@ -226,6 +226,18 @@ subroutine yog_tend(ztodt, state, ptend)
226
226
call outfld(' YOGDICE ' ,ptend% q(1 ,1 ,ixcldice) ,pcols ,lchnk )
227
227
call outfld(' YOGDLIQ ' ,ptend% q(1 ,1 ,ixcldliq) ,pcols ,lchnk )
228
228
call outfld(' YOGPREC ' ,yog_precsfc ,pcols ,lchnk )
229
+
230
+ ! Update the number concentration tendencies for liquid and ice species
231
+ ! Values taken to match those in the `clubb_tend_cam()` subroutine
232
+ call cnst_get_ind(' NUMLIQ' , ixnumliq)
233
+ call cnst_get_ind(' NUMICE' , ixnumice)
234
+ do k = 1 , pver
235
+ do i = 1 , ncol
236
+ ptend_loc% q(i,k,ixnumliq) = 3 . * max (0.0 , ptend% q(i,k,ixcldliq)) / (4.0 * 3.14 * 8.0e-6 ** 3 * 997.0 )
237
+ ptend_loc% q(i,k,ixnumice) = 3 . * max (0.0 , ptend% q(i,k,ixcldice)) / (4.0 * 3.14 * 25.0e-6 ** 3 * 500.0 )
238
+ end do
239
+ end do
240
+
229
241
end subroutine yog_tend
230
242
231
243
! =========================================================================================
0 commit comments