Skip to content

Commit

Permalink
Remove multiplications by col%wtgcell in CNFireLi2021Mod
Browse files Browse the repository at this point in the history
Partially addresses ESCOMP/CTSM/ESCOMP#1169. See today's comments in
ESCOMP#889
  • Loading branch information
billsacks committed Oct 1, 2020
1 parent e4b6bcc commit 7a7ab79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/biogeochem/CNFireLi2021Mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ subroutine CNFireArea (this, bounds, num_soilc, filter_soilc, num_soilp, filter_
! whereas in fact the land cover change occurred when the column *was*
! tropical closed forest.
if( patch%itype(p) == nbrdlf_evr_trp_tree .and. patch%wtcol(p) > 0._r8 )then
trotr1_col(c)=trotr1_col(c)+patch%wtcol(p)*col%wtgcell(c)
trotr1_col(c)=trotr1_col(c)+patch%wtcol(p)
end if
if( patch%itype(p) == nbrdlf_dcd_trp_tree .and. patch%wtcol(p) > 0._r8 )then
trotr2_col(c)=trotr2_col(c)+patch%wtcol(p)*col%wtgcell(c)
trotr2_col(c)=trotr2_col(c)+patch%wtcol(p)
end if

if (transient_landcover) then
Expand All @@ -409,7 +409,7 @@ subroutine CNFireArea (this, bounds, num_soilc, filter_soilc, num_soilp, filter_
! different seasons. But having deforestation spread evenly
! throughout the year is much better than having it all
! concentrated on January 1.)
dtrotr_col(c)=dtrotr_col(c)-dwt_smoothed(p)*col%wtgcell(c)
dtrotr_col(c)=dtrotr_col(c)-dwt_smoothed(p)
end if
end if
end if
Expand Down

0 comments on commit 7a7ab79

Please sign in to comment.