Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/soilbiogeochem/SoilBiogeochemNLeachingMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,12 @@ subroutine SoilBiogeochemNLeaching(bounds, num_bgc_soilc, filter_bgc_soilc, &
smin_no3_runoff_vr(c,j) = disn_conc * qflx_surf(c) * &
h2osoi_liq(c,j) / ( surface_water(c) * col%dz(c,j) )
elseif ( zisoi(j-1) < depth_runoff_Nloss ) then
! Only the fraction (depth_runoff_Nloss - zisoi(j-1))/dz of this layer's water
! is in the mixing zone (consistent with surface_water above). The flux is
! per unit volume of the whole layer, so divide by the full layer thickness.
smin_no3_runoff_vr(c,j) = disn_conc * qflx_surf(c) * &
h2osoi_liq(c,j) * ((depth_runoff_Nloss - zisoi(j-1)) / &
col%dz(c,j)) / ( surface_water(c) * (depth_runoff_Nloss-zisoi(j-1) ))
col%dz(c,j)) / ( surface_water(c) * col%dz(c,j) )
else
smin_no3_runoff_vr(c,j) = 0._r8
endif
Expand Down
Loading