diff --git a/components/elm/src/data_types/ColumnDataType.F90 b/components/elm/src/data_types/ColumnDataType.F90 index 724cefb5cfdf..d0a4a10cd3d6 100644 --- a/components/elm/src/data_types/ColumnDataType.F90 +++ b/components/elm/src/data_types/ColumnDataType.F90 @@ -7538,14 +7538,16 @@ subroutine col_cf_summary(this, bounds, num_soilc, filter_soilc, isotope) c = filter_soilc(fc) this%decomp_cpools_leached(c,l) = 0._r8 end do - do j = 1, nlev - do fc = 1,num_soilc + if(l /= i_cwd)then + do j = 1, nlev + do fc = 1,num_soilc c = filter_soilc(fc) this%decomp_cpools_leached(c,l) = & this%decomp_cpools_leached(c,l) + & this%decomp_cpools_transport_tendency(c,j,l) * dzsoi_decomp(j) - end do - end do + end do + end do + endif do fc = 1,num_soilc c = filter_soilc(fc) this%som_c_leached(c) = & @@ -9784,8 +9786,9 @@ subroutine col_nf_summary(this, bounds, num_soilc, filter_soilc) c = filter_soilc(fc) this%decomp_npools_leached(c,l) = 0._r8 end do - do j = 1, nlev - do fc = 1,num_soilc + if(l /= i_cwd)then + do j = 1, nlev + do fc = 1,num_soilc c = filter_soilc(fc) this%decomp_npools_leached(c,l) = & this%decomp_npools_leached(c,l) + & @@ -9793,8 +9796,9 @@ subroutine col_nf_summary(this, bounds, num_soilc, filter_soilc) this%bgc_npool_inputs(c,l) = this%bgc_npool_inputs(c,l) + & (this%bgc_npool_ext_inputs_vr(c,j,l)-this%bgc_npool_ext_loss_vr(c,j,l))*dzsoi_decomp(j) - end do - end do + end do + end do + endif do fc = 1,num_soilc c = filter_soilc(fc) this%som_n_leached(c) = & @@ -11314,16 +11318,16 @@ subroutine col_pf_summary(this, bounds, num_soilc, filter_soilc) c = filter_soilc(fc) this%decomp_ppools_leached(c,l) = 0._r8 end do - - do j = 1, nlevdecomp - do fc = 1,num_soilc + if(l /= i_cwd)then + do j = 1, nlevdecomp + do fc = 1,num_soilc c = filter_soilc(fc) this%decomp_ppools_leached(c,l) = & this%decomp_ppools_leached(c,l) + & this%decomp_ppools_transport_tendency(c,j,l) * dzsoi_decomp(j) - end do - end do - + end do + end do + endif do fc = 1,num_soilc c = filter_soilc(fc) this%som_p_leached(c) = &