Skip to content

Commit a781bbf

Browse files
committed
temporary diagnostics
1 parent e7573ba commit a781bbf

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

components/elm/src/main/elmfates_interfaceMod.F90

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,21 +1474,45 @@ end subroutine dynamics_driv
14741474

14751475
subroutine UpdateLitterFluxes(this,bounds_clump)
14761476

1477+
use elm_varpar, only : i_met_lit
1478+
use elm_varpar, only : i_cel_lit
1479+
use elm_varpar, only : i_lig_lit
1480+
14771481
implicit none
14781482
class(hlm_fates_interface_type), intent(inout) :: this
14791483
type(bounds_type) , intent(in) :: bounds_clump
14801484

14811485
! !LOCAL VARIABLES:
14821486
integer :: s ! site index
1487+
integer :: r ! site index
14831488
integer :: c ! column index (HLM)
14841489
integer :: nc ! clump index
14851490
integer :: nld_si
14861491
real(r8) :: dtime
14871492

14881493
dtime = real(get_step_size(),r8)
14891494
nc = bounds_clump%clump_index
1495+
1496+
do s = 1, this%fates(nc)%nsites
1497+
write(iulog,*) 'Updating litter fluxes for site: ', s
1498+
call FluxIntoLitterPools(this%fates(nc)%sites(s))
1499+
end do
14901500

14911501
call this%fates(nc)%UpdateLitterFluxes(dtime)
1502+
write(iulog,*) 'After UpdateLitterFluxes call'
1503+
1504+
do r=1,this%fates(nc)%npatches
1505+
c = this%fates(nc)%registry(r)%GetColumnIndex()
1506+
1507+
write(iulog,*) 'r,c,litfall: ',r,c,col_cf%litfall(c)
1508+
write(iulog,*) 'r,c,sumcel: ',r,c,sum(col_cf%decomp_cpools_sourcesink(c,:,i_cel_lit))
1509+
write(iulog,*) 'r,c,sumlab: ',r,c,sum(col_cf%decomp_cpools_sourcesink(c,:,i_met_lit))
1510+
write(iulog,*) 'r,c,sumlig: ',r,c,sum(col_cf%decomp_cpools_sourcesink(c,:,i_lig_lit))
1511+
1512+
end do
1513+
1514+
write(iulog,*) 'Completed elmfates UpdateLitterFluxes subroutine'
1515+
14921516

14931517
end subroutine UpdateLitterFluxes
14941518

0 commit comments

Comments
 (0)