Skip to content

Commit aba6966

Browse files
Added debugging info
1 parent e482b69 commit aba6966

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/elm/src/biogeochem/VerticalProfileMod.F90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,15 @@ subroutine decomp_vertprofiles(bounds, &
336336
end do
337337
if ( ( abs(froot_prof_sum - 1._r8) > delta ) .or. ( abs(croot_prof_sum - 1._r8) > delta ) .or. &
338338
( abs(stem_prof_sum - 1._r8) > delta ) .or. ( abs(leaf_prof_sum - 1._r8) > delta ) ) then
339+
c = veg_pp%column(p)
339340
write(iulog, *) 'profile sums: ', froot_prof_sum, croot_prof_sum, leaf_prof_sum, stem_prof_sum
341+
write(iulog, *) 'c: ',c
342+
write(iulog, *) 'altmax_lastyear_indx: ', altmax_lastyear_indx(c)
343+
write(iulog, *) 'cinput_rootfr: ', col_cinput_rootfr(c,:)
344+
write(iulog, *) 'dzsoi_decomp: ', dzsoi_decomp(:)
345+
write(iulog, *) 'surface_prof: ', surface_prof(:)
346+
write(iulog, *) 'p, itype(p), wtcol(p): ', p, veg_pp%itype(p), veg_pp%wtcol(p)
347+
write(iulog, *) 'cinput_rootfr(p,:): ', cinput_rootfr(p,:)
340348
call endrun(msg=' ERROR: sum-1 > delta'//errMsg(__FILE__, __LINE__))
341349
endif
342350
end do

0 commit comments

Comments
 (0)