Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates and fixes to maintenance respiration #138

Merged
merged 13 commits into from
Oct 31, 2016
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions components/clm/src/ED/biogeochem/EDCanopyStructureMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,6 @@ subroutine canopy_summarization( nsites, sites, bc_in )
integer :: ft ! plant functional type
integer :: ifp
integer :: patchn ! identification number for each patch.
real(r8) :: coarse_wood_frac
real(r8) :: canopy_leaf_area ! total amount of leaf area in the vegetated area. m2.

!----------------------------------------------------------------------
Expand Down Expand Up @@ -710,26 +709,6 @@ subroutine canopy_summarization( nsites, sites, bc_in )
do while(associated(currentCohort))

ft = currentCohort%pft
currentCohort%livestemn = currentCohort%bsw / pftcon%leafcn(currentCohort%pft)

currentCohort%livecrootn = 0.0_r8

if (pftcon%woody(ft) == 1) then
coarse_wood_frac = 0.5_r8
else
coarse_wood_frac = 0.0_r8
end if

if ( DEBUG ) then
write(fates_log(),*) 'canopy_summarization 724 ',currentCohort%livecrootn
write(fates_log(),*) 'canopy_summarization 725 ',currentCohort%br
write(fates_log(),*) 'canopy_summarization 726 ',coarse_wood_frac
write(fates_log(),*) 'canopy_summarization 727 ',pftcon%leafcn(ft)
endif

currentCohort%livecrootn = currentCohort%br * coarse_wood_frac / pftcon%leafcn(ft)

if ( DEBUG ) write(fates_log(),*) 'canopy_summarization 732 ',currentCohort%livecrootn

currentCohort%b = currentCohort%balive+currentCohort%bdead+currentCohort%bstore
currentCohort%treelai = tree_lai(currentCohort)
Expand Down
16 changes: 3 additions & 13 deletions components/clm/src/ED/biogeochem/EDCohortDynamicsMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ subroutine nan_cohort(cc_p)


!RESPIRATION
currentCohort%rd = nan
currentCohort%rdark = nan
currentCohort%resp_m = nan ! Maintenance respiration. kGC/cohort/year
currentCohort%resp_g = nan ! Growth respiration. kGC/cohort/year
currentCohort%livestem_mr = nan ! Live stem maintenance respiration. kgC/indiv/s-1
Expand All @@ -381,11 +381,6 @@ subroutine nan_cohort(cc_p)
currentCohort%leaf_litter = nan ! leaf litter from phenology: KgC/m2
currentCohort%woody_turnover = nan ! amount of wood lost each day: kgC/indiv/year. Currently set to zero.

! NITROGEN POOLS
currentCohort%livestemn = nan ! live stem nitrogen : KgN/invid
currentCohort%livecrootn = nan ! live coarse root nitrogen: KgN/invid
currentCohort%frootn = nan ! fine root nitrogen : KgN/invid

! VARIABLES NEEDED FOR INTEGRATION
currentCohort%dndt = nan ! time derivative of cohort size
currentCohort%dhdt = nan ! time derivative of height
Expand Down Expand Up @@ -423,7 +418,7 @@ subroutine zero_cohort(cc_p)

currentCohort%NV = 0
currentCohort%status_coh = 0
currentCohort%rd = 0._r8
currentCohort%rdark = 0._r8
currentCohort%resp_m = 0._r8
currentCohort%resp_g = 0._r8
currentCohort%livestem_mr = 0._r8
Expand Down Expand Up @@ -1040,18 +1035,13 @@ subroutine copy_cohort( currentCohort,copyc )
n%npp_store = o%npp_store

!RESPIRATION
n%rd = o%rd
n%rdark = o%rdark
n%resp_m = o%resp_m
n%resp_g = o%resp_g
n%livestem_mr = o%livestem_mr
n%livecroot_mr = o%livecroot_mr
n%froot_mr = o%froot_mr

! NITROGEN POOLS
n%livestemn = o%livestemn
n%livecrootn = o%livecrootn
n%frootn = o%frootn

! ALLOCATION
n%md = o%md
n%leaf_md = o%leaf_md
Expand Down
Loading