Skip to content

Commit

Permalink
Reverted rearrangement of fc_air_frac_as_frac_porosity calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Sep 13, 2023
1 parent 056ec56 commit 3695c60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/soilbiogeochem/SoilBiogeochemNitrifDenitrifMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ subroutine SoilBiogeochemNitrifDenitrif(bounds, num_soilc, filter_soilc, &
! calculate gas diffusivity of soil at field capacity here
! use expression from methane code, but neglect OM for now
fc_air_frac = watsat(c,j)-watfc(c,j) ! theta_a in Riley et al. (2011)
fc_air_frac_as_frac_porosity = fc_air_frac / watsat(c,j) ! theta_a/theta_s in Riley et al. (2011)
fc_air_frac_as_frac_porosity = 1._r8 - watfc(c,j) / watsat(c,j)
! This calculation of fc_air_frac_as_frac_porosity is algebraically equivalent to
! fc_air_frac/watsat(c,j). In that form, it's easier to see its correspondence
! to theta_a/theta_s in Riley et al. (2011).

! use diffusivity calculation including peat
if (use_lch4) then
Expand Down

0 comments on commit 3695c60

Please sign in to comment.