@@ -273,7 +273,6 @@ subroutine ed_integrate_state_variables(currentSite, bc_in )
273273 real (r8 ) :: dbh_old ! dbh of plant before daily PRT [cm]
274274 real (r8 ) :: hite_old ! height of plant before daily PRT [m]
275275 logical :: is_drought ! logical for if the plant (site) is in a drought state
276- real (r8 ) :: leaf_c
277276 real (r8 ) :: delta_dbh ! correction for dbh
278277 real (r8 ) :: delta_hite ! correction for hite
279278
@@ -354,15 +353,6 @@ subroutine ed_integrate_state_variables(currentSite, bc_in )
354353
355354 currentSite% flux_in = currentSite% flux_in + currentCohort% npp_acc * currentCohort% n
356355
357- leaf_c = currentCohort% prt% GetState(leaf_organ, all_carbon_elements)
358- currentCohort% treelai = tree_lai(leaf_c, currentCohort% pft, currentCohort% c_area, currentCohort% n, &
359- currentCohort% canopy_layer, currentPatch% canopy_layer_tlai, &
360- currentCohort% vcmax25top)
361- currentCohort% treesai = tree_sai(currentCohort% pft, currentCohort% dbh, currentCohort% canopy_trim, &
362- currentCohort% c_area, currentCohort% n, currentCohort% canopy_layer, &
363- currentPatch% canopy_layer_tlai, currentCohort% treelai,currentCohort% vcmax25top,6 )
364-
365-
366356 ! Conduct Maintenance Turnover (parteh)
367357 call currentCohort% prt% CheckMassConservation(ft,3 )
368358 if (any (currentSite% dstatus == [phen_dstat_moiston,phen_dstat_timeon])) then
@@ -373,15 +363,6 @@ subroutine ed_integrate_state_variables(currentSite, bc_in )
373363 call PRTMaintTurnover(currentCohort% prt,ft,is_drought)
374364 call currentCohort% prt% CheckMassConservation(ft,4 )
375365
376- leaf_c = currentCohort% prt% GetState(leaf_organ, all_carbon_elements)
377- currentCohort% treelai = tree_lai(leaf_c, currentCohort% pft, currentCohort% c_area, currentCohort% n, &
378- currentCohort% canopy_layer, currentPatch% canopy_layer_tlai, &
379- currentCohort% vcmax25top)
380- currentCohort% treesai = tree_sai(currentCohort% pft, currentCohort% dbh, currentCohort% canopy_trim, &
381- currentCohort% c_area, currentCohort% n, currentCohort% canopy_layer, &
382- currentPatch% canopy_layer_tlai, currentCohort% treelai,currentCohort% vcmax25top,7 )
383-
384-
385366 ! If the current diameter of a plant is somehow less than what is consistent
386367 ! with what is allometrically consistent with the stuctural biomass, then
387368 ! correct the dbh to match.
@@ -401,14 +382,6 @@ subroutine ed_integrate_state_variables(currentSite, bc_in )
401382 ! routine is also called following fusion
402383 call UpdateCohortBioPhysRates(currentCohort)
403384
404- leaf_c = currentCohort% prt% GetState(leaf_organ, all_carbon_elements)
405- currentCohort% treelai = tree_lai(leaf_c, currentCohort% pft, currentCohort% c_area, currentCohort% n, &
406- currentCohort% canopy_layer, currentPatch% canopy_layer_tlai, &
407- currentCohort% vcmax25top)
408- currentCohort% treesai = tree_sai(currentCohort% pft, currentCohort% dbh, currentCohort% canopy_trim, &
409- currentCohort% c_area, currentCohort% n, currentCohort% canopy_layer, &
410- currentPatch% canopy_layer_tlai, currentCohort% treelai,currentCohort% vcmax25top,3 )
411-
412385 ! Transfer all reproductive tissues into seed production
413386 call PRTReproRelease(currentCohort% prt,repro_organ,carbon12_element, &
414387 1.0_r8 , currentCohort% seed_prod)
0 commit comments