Skip to content

Commit 9fbb2d8

Browse files
authored
Merge pull request #1433 from ckoven/remove_trunk_product_var_v2
remove trunk_product_site variable
2 parents 27c11f8 + eeeba63 commit 9fbb2d8

File tree

7 files changed

+0
-50
lines changed

7 files changed

+0
-50
lines changed

biogeochem/EDLoggingMortalityMod.F90

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,9 +1145,6 @@ subroutine logging_litter_fluxes(currentSite, currentPatch, newPatch, patch_site
11451145
! This portion is known as "trunk_product_site
11461146

11471147
if(element_id .eq. carbon12_element) then
1148-
currentSite%resources_management%trunk_product_site = &
1149-
currentSite%resources_management%trunk_product_site + &
1150-
trunk_product_site
11511148

11521149
currentSite%resources_management%delta_litter_stock = &
11531150
currentSite%resources_management%delta_litter_stock + &

biogeochem/EDPatchDynamicsMod.F90

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,8 +2593,6 @@ subroutine landusechange_litter_fluxes(currentSite, currentPatch, &
25932593
integer :: pft ! loop index for plant functional types
25942594
integer :: dcmpy ! loop index for decomposability pool
25952595
integer :: element_id ! parteh compatible global element index
2596-
real(r8) :: trunk_product_site ! flux of carbon in trunk products exported off site [ kgC/site ]
2597-
! (note we are accumulating over the patch, but scale is site level)
25982596
real(r8) :: woodproduct_mass ! mass that ends up in wood products [kg]
25992597

26002598
!---------------------------------------------------------------------
@@ -2637,9 +2635,6 @@ subroutine landusechange_litter_fluxes(currentSite, currentPatch, &
26372635

26382636
do el = 1,num_elements
26392637

2640-
! Zero some site level accumulator diagnsotics
2641-
trunk_product_site = 0.0_r8
2642-
26432638
element_id = element_list(el)
26442639
site_mass => currentSite%mass_balance(el)
26452640
elflux_diags => currentSite%flux_diags%elem(el)
@@ -2773,9 +2768,6 @@ subroutine landusechange_litter_fluxes(currentSite, currentPatch, &
27732768

27742769
site_mass%burn_flux_to_atm = site_mass%burn_flux_to_atm + burned_mass
27752770

2776-
trunk_product_site = trunk_product_site + &
2777-
woodproduct_mass
2778-
27792771
! Amount of trunk mass exported off site [kg/m2]
27802772
elflux_diags%exported_harvest = elflux_diags%exported_harvest + &
27812773
woodproduct_mass * area_inv
@@ -2792,15 +2784,6 @@ subroutine landusechange_litter_fluxes(currentSite, currentPatch, &
27922784
currentCohort => currentCohort%taller
27932785
enddo
27942786

2795-
! Update the amount of carbon exported from the site through logging.
2796-
2797-
if(element_id .eq. carbon12_element) then
2798-
currentSite%resources_management%trunk_product_site = &
2799-
currentSite%resources_management%trunk_product_site + &
2800-
trunk_product_site
2801-
end if
2802-
2803-
28042787
end do
28052788

28062789
end if clear_veg_if

biogeochem/EDPhysiologyMod.F90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,10 +3149,6 @@ subroutine CWDInput( currentSite, currentPatch, litt, bc_in)
31493149
(leaf_m + fnrt_m + store_m ) * &
31503150
(dead_n_ilogging+dead_n_dlogging) *currentPatch%area
31513151

3152-
currentSite%resources_management%trunk_product_site = &
3153-
currentSite%resources_management%trunk_product_site + &
3154-
trunk_wood * logging_export_frac * currentPatch%area
3155-
31563152
do c = 1,ncwd
31573153
currentSite%resources_management%delta_litter_stock = &
31583154
currentSite%resources_management%delta_litter_stock + &

main/EDInitMod.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ subroutine zero_site( site_in )
359359
! Resources management (logging/harvesting, etc)
360360
site_in%resources_management%harvest_debt = 0.0_r8
361361
site_in%resources_management%harvest_debt_sec = 0.0_r8
362-
site_in%resources_management%trunk_product_site = 0.0_r8
363362

364363
! canopy spread
365364
site_in%spread = 0._r8

main/EDTypesMod.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ module EDTypesMod
137137
!************************************
138138
type, public :: ed_resources_management_type
139139

140-
real(r8) :: trunk_product_site ! Actual trunk product at site level KgC/site
141140
real(r8) :: harvest_debt ! the amount of kgC per site that did not successfully harvested
142141
real(r8) :: harvest_debt_sec ! the amount of kgC per site from secondary patches that did
143142
! not successfully harvested

main/FatesHistoryInterfaceMod.F90

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ module FatesHistoryInterfaceMod
430430
integer :: ih_froot_mr_si
431431
integer :: ih_livestem_mr_si
432432
integer :: ih_livecroot_mr_si
433-
integer :: ih_woodproduct_si
434433
integer :: ih_h2oveg_si
435434
integer :: ih_h2oveg_dead_si
436435
integer :: ih_h2oveg_recruit_si
@@ -2470,7 +2469,6 @@ subroutine update_history_dyn_sitelevel(this,nc,nsites,sites)
24702469
hio_promotion_carbonflux_si => this%hvars(ih_promotion_carbonflux_si)%r81d, &
24712470
hio_canopy_mortality_carbonflux_si => this%hvars(ih_canopy_mortality_carbonflux_si)%r81d, &
24722471
hio_ustory_mortality_carbonflux_si => this%hvars(ih_understory_mortality_carbonflux_si)%r81d, &
2473-
hio_woodproduct_si => this%hvars(ih_woodproduct_si)%r81d, &
24742472
hio_gdd_si => this%hvars(ih_gdd_si)%r81d, &
24752473
hio_site_ncolddays_si => this%hvars(ih_site_ncolddays_si)%r81d, &
24762474
hio_site_nchilldays_si => this%hvars(ih_site_nchilldays_si)%r81d, &
@@ -2544,10 +2542,6 @@ subroutine update_history_dyn_sitelevel(this,nc,nsites,sites)
25442542
hio_cleafoff_si(io_si) = real(sites(s)%phen_model_date - sites(s)%cleafoffdate,r8)
25452543
hio_cleafon_si(io_si) = real(sites(s)%phen_model_date - sites(s)%cleafondate,r8)
25462544

2547-
! track total wood product accumulation at the site level
2548-
hio_woodproduct_si(io_si) = sites(s)%resources_management%trunk_product_site &
2549-
* AREA_INV
2550-
25512545
! site-level fire variables:
25522546

25532547
! Nesterov index (unitless)
@@ -6347,12 +6341,6 @@ subroutine define_history_vars(this, initialize_variables)
63476341
upfreq=group_dyna_simple, ivar=ivar, initialize=initialize_variables, &
63486342
index=ih_elai_si)
63496343

6350-
call this%set_history_var(vname='FATES_WOOD_PRODUCT', units='kg m-2', &
6351-
long='total wood product from logging in kg carbon per m2 land area', &
6352-
use_default='active', avgflag='A', vtype=site_r8, hlms='CLM:ALM', &
6353-
upfreq=group_dyna_simple, ivar=ivar, initialize=initialize_variables, &
6354-
index=ih_woodproduct_si)
6355-
63566344
! Fire Variables
63576345

63586346
call this%set_history_var(vname='FATES_NESTEROV_INDEX', units='', &

main/FatesRestartInterfaceMod.F90

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ module FatesRestartInterfaceMod
110110
integer :: ir_landuse_vector_gt_min_si
111111
integer :: ir_area_bareground_si
112112
integer :: ir_snow_depth_si
113-
integer :: ir_trunk_product_si
114113
integer :: ir_landuse_config_si
115114
integer :: ir_ncohort_pa
116115
integer :: ir_canopy_layer_co
@@ -739,11 +738,6 @@ subroutine define_restart_vars(this, initialize_variables)
739738
long_name='average snow depth', units='m', flushval = flushzero, &
740739
hlms='CLM:ALM', initialize=initialize_variables, ivar=ivar, index = ir_snow_depth_si )
741740

742-
call this%set_restart_var(vname='fates_trunk_product_site', vtype=site_r8, &
743-
long_name='Accumulate trunk product flux at site', &
744-
units='kgC/m2', flushval = flushzero, &
745-
hlms='CLM:ALM', initialize=initialize_variables, ivar=ivar, index = ir_trunk_product_si )
746-
747741
call this%set_restart_var(vname='fates_landuse_config_site', vtype=site_int, &
748742
long_name='hlm_use_potentialveg status of run that created this restart file', &
749743
units='kgC/m2', flushval = flushzero, &
@@ -2118,7 +2112,6 @@ subroutine set_restart_vectors(this,nc,nsites,sites)
21182112
rio_landuse_vector_gt_min_si => this%rvars(ir_landuse_vector_gt_min_si)%int1d, &
21192113
rio_area_bareground_si => this%rvars(ir_area_bareground_si)%r81d, &
21202114
rio_snow_depth_si => this%rvars(ir_snow_depth_si)%r81d, &
2121-
rio_trunk_product_si => this%rvars(ir_trunk_product_si)%r81d, &
21222115
rio_landuse_config_s => this%rvars(ir_landuse_config_si)%int1d, &
21232116
rio_ncohort_pa => this%rvars(ir_ncohort_pa)%int1d, &
21242117
rio_fcansno_pa => this%rvars(ir_fcansno_pa)%r81d, &
@@ -2743,9 +2736,6 @@ subroutine set_restart_vectors(this,nc,nsites,sites)
27432736
rio_fireweather_index_si(io_idx_si) = sites(s)%fireWeather%fire_weather_index
27442737
rio_snow_depth_si(io_idx_si) = sites(s)%snow_depth
27452738

2746-
! Accumulated trunk product
2747-
rio_trunk_product_si(io_idx_si) = sites(s)%resources_management%trunk_product_site
2748-
27492739
! land use flag
27502740
rio_landuse_config_si(io_idx_si) = hlm_use_potentialveg
27512741

@@ -3116,7 +3106,6 @@ subroutine get_restart_vectors(this, nc, nsites, sites)
31163106
rio_landuse_vector_gt_min_si => this%rvars(ir_landuse_vector_gt_min_si)%int1d, &
31173107
rio_area_bareground_si => this%rvars(ir_area_bareground_si)%r81d, &
31183108
rio_snow_depth_si => this%rvars(ir_snow_depth_si)%r81d, &
3119-
rio_trunk_product_si => this%rvars(ir_trunk_product_si)%r81d, &
31203109
rio_landuse_config_si => this%rvars(ir_landuse_config_si)%int1d, &
31213110
rio_ncohort_pa => this%rvars(ir_ncohort_pa)%int1d, &
31223111
rio_fcansno_pa => this%rvars(ir_fcansno_pa)%r81d, &
@@ -3775,7 +3764,6 @@ subroutine get_restart_vectors(this, nc, nsites, sites)
37753764

37763765
sites(s)%fireWeather%fire_weather_index = rio_fireweather_index_si(io_idx_si)
37773766
sites(s)%snow_depth = rio_snow_depth_si(io_idx_si)
3778-
sites(s)%resources_management%trunk_product_site = rio_trunk_product_si(io_idx_si)
37793767

37803768
! if needed, trigger the special procedure to initialize land use structure from a
37813769
! restart run that did not include land use.

0 commit comments

Comments
 (0)