Skip to content

Commit

Permalink
add local variable initialization for get_harvest_debt
Browse files Browse the repository at this point in the history
  • Loading branch information
glemieux committed Jan 26, 2023
1 parent 2504716 commit d80ef20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions biogeochem/EDLoggingMortalityMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,12 @@ subroutine get_harvest_debt(site_in, bc_in, harvest_tag)
real(r8) :: harvest_debt_sec_young

if(logging_time) then

! Initialize the local variables
harvest_debt_pri = 0._r8
harvest_debt_sec_mature = 0._r8
harvest_debt_sec_young = 0._r8

! First we need to get harvest rate for all three categories
do h_index = 1, hlm_num_lu_harvest_cats
! Primary forest harvest rate
Expand Down

0 comments on commit d80ef20

Please sign in to comment.