Skip to content

Commit

Permalink
Updated cumulative TVAI function to estimate the mid-point of layer o…
Browse files Browse the repository at this point in the history
…f interest
  • Loading branch information
rgknox committed Jul 11, 2018
1 parent c0dbd7d commit 516670a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion biogeochem/FatesAllometryMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,8 @@ function CumulativeLayerTVAI(icanlayer, &
call endrun(msg=errMsg(sourcefile, __LINE__))
end if

cum_tvai = cum_tvai + tvai0 + tvai
! Apply the cumulative TVAI at the current layer mid-point (ie 0.5*)
cum_tvai = cum_tvai + tvai0 + 0.5*tvai

return
end function CumulativeLayerTVAI
Expand Down

0 comments on commit 516670a

Please sign in to comment.