@@ -1462,21 +1462,45 @@ end subroutine dynamics_driv
14621462
14631463 subroutine UpdateLitterFluxes (this ,bounds_clump )
14641464
1465+ use elm_varpar, only : i_met_lit
1466+ use elm_varpar, only : i_cel_lit
1467+ use elm_varpar, only : i_lig_lit
1468+
14651469 implicit none
14661470 class(hlm_fates_interface_type), intent (inout ) :: this
14671471 type (bounds_type) , intent (in ) :: bounds_clump
14681472
14691473 ! !LOCAL VARIABLES:
14701474 integer :: s ! site index
1475+ integer :: r ! site index
14711476 integer :: c ! column index (HLM)
14721477 integer :: nc ! clump index
14731478 integer :: nld_si
14741479 real (r8 ) :: dtime
14751480
14761481 dtime = real (get_step_size(),r8 )
14771482 nc = bounds_clump% clump_index
1483+
1484+ do s = 1 , this% fates(nc)% nsites
1485+ write (iulog,* ) ' Updating litter fluxes for site: ' , s
1486+ call FluxIntoLitterPools(this% fates(nc)% sites(s))
1487+ end do
14781488
14791489 call this% fates(nc)% UpdateLitterFluxes(dtime)
1490+ write (iulog,* ) ' After UpdateLitterFluxes call'
1491+
1492+ do r= 1 ,this% fates(nc)% npatches
1493+ c = this% fates(nc)% registry(r)% GetColumnIndex()
1494+
1495+ write (iulog,* ) ' r,c,litfall: ' ,r,c,col_cf% litfall(c)
1496+ write (iulog,* ) ' r,c,sumcel: ' ,r,c,sum (col_cf% decomp_cpools_sourcesink(c,:,i_cel_lit))
1497+ write (iulog,* ) ' r,c,sumlab: ' ,r,c,sum (col_cf% decomp_cpools_sourcesink(c,:,i_met_lit))
1498+ write (iulog,* ) ' r,c,sumlig: ' ,r,c,sum (col_cf% decomp_cpools_sourcesink(c,:,i_lig_lit))
1499+
1500+ end do
1501+
1502+ write (iulog,* ) ' Completed elmfates UpdateLitterFluxes subroutine'
1503+
14801504
14811505 end subroutine UpdateLitterFluxes
14821506
0 commit comments