From 9df09538e3f3176d918dd52be9d4a47cb3a1ed9e Mon Sep 17 00:00:00 2001 From: jestenzel <35509486+jestenzel@users.noreply.github.com> Date: Sun, 30 Oct 2022 11:30:22 +0100 Subject: [PATCH] fix understory_mortality_carbonflux calc The logging component of understory_mortality_carbonflux (like canopy) was wayyy to high compared to all other sources because it needed to be divided by days_per_sec (86,400). --- main/FatesHistoryInterfaceMod.F90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/FatesHistoryInterfaceMod.F90 b/main/FatesHistoryInterfaceMod.F90 index 636fb2a9a6..39578c8f2f 100644 --- a/main/FatesHistoryInterfaceMod.F90 +++ b/main/FatesHistoryInterfaceMod.F90 @@ -2910,7 +2910,8 @@ subroutine update_history_dyn(this,nc,nsites,sites) ccohort%frmort + ccohort%heatmort + ccohort%smort + ccohort%asmort) * & total_m * ccohort%n * days_per_sec * years_per_day * ha_per_m2 + & (ccohort%lmort_direct + ccohort%lmort_collateral + ccohort%lmort_infra) * total_m * & - ccohort%n * ha_per_m2 + ccohort%n * ha_per_m2 * days_per_sec ![JStenzel Edit] /365 / 86400 (year_to_sec) , * 365 (because this will be averaged) + !!!![JStenzel add] Understory mortality cflux variables hio_understory_m1_carbonflux_si(io_si) = hio_understory_m1_carbonflux_si(io_si) + & ccohort%bmort * total_m * ccohort%n * days_per_sec * years_per_day * ha_per_m2