Skip to content

Commit 8ff6f9c

Browse files
committed
Remove unnecessary (and erroneous) calls to treesai and treelai during EDMain.
1 parent dbc56ea commit 8ff6f9c

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

main/EDMainMod.F90

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -354,15 +354,6 @@ subroutine ed_integrate_state_variables(currentSite, bc_in )
354354

355355
currentSite%flux_in = currentSite%flux_in + currentCohort%npp_acc * currentCohort%n
356356

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-
366357
! Conduct Maintenance Turnover (parteh)
367358
call currentCohort%prt%CheckMassConservation(ft,3)
368359
if(any(currentSite%dstatus == [phen_dstat_moiston,phen_dstat_timeon])) then
@@ -373,15 +364,6 @@ subroutine ed_integrate_state_variables(currentSite, bc_in )
373364
call PRTMaintTurnover(currentCohort%prt,ft,is_drought)
374365
call currentCohort%prt%CheckMassConservation(ft,4)
375366

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-
385367
! If the current diameter of a plant is somehow less than what is consistent
386368
! with what is allometrically consistent with the stuctural biomass, then
387369
! correct the dbh to match.
@@ -401,14 +383,6 @@ subroutine ed_integrate_state_variables(currentSite, bc_in )
401383
! routine is also called following fusion
402384
call UpdateCohortBioPhysRates(currentCohort)
403385

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-
412386
! Transfer all reproductive tissues into seed production
413387
call PRTReproRelease(currentCohort%prt,repro_organ,carbon12_element, &
414388
1.0_r8, currentCohort%seed_prod)

0 commit comments

Comments
 (0)