Skip to content

Commit

Permalink
Merge branch 'lnd/fix-vertp-precision' into next (PR #6649)
Browse files Browse the repository at this point in the history
Merge new commit
Fixes #6650
[BFB]
  • Loading branch information
peterdschwartz committed Oct 1, 2024
2 parents 324206f + e482b69 commit 491e48b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/elm/src/biogeochem/VerticalProfileMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ subroutine decomp_vertprofiles(bounds, &
end do
else
! if fully frozen, or no roots, put everything in the top layer
froot_prof(p,1) = 1./dzsoi_decomp(1)
croot_prof(p,1) = 1./dzsoi_decomp(1)
leaf_prof(p,1) = 1./dzsoi_decomp(1)
stem_prof(p,1) = 1./dzsoi_decomp(1)
froot_prof(p,1) = 1._r8/dzsoi_decomp(1)
croot_prof(p,1) = 1._r8/dzsoi_decomp(1)
leaf_prof(p,1) = 1._r8/dzsoi_decomp(1)
stem_prof(p,1) = 1._r8/dzsoi_decomp(1)
endif

end do
Expand Down Expand Up @@ -257,9 +257,9 @@ subroutine decomp_vertprofiles(bounds, &
pdep_prof(c,j) = surface_prof(j)/ surface_prof_tot
end do
else
nfixation_prof(c,1) = 1./dzsoi_decomp(1)
ndep_prof(c,1) = 1./dzsoi_decomp(1)
pdep_prof(c,1) = 1./dzsoi_decomp(1)
nfixation_prof(c,1) = 1._r8/dzsoi_decomp(1)
ndep_prof(c,1) = 1._r8/dzsoi_decomp(1)
pdep_prof(c,1) = 1._r8/dzsoi_decomp(1)
endif
else
if ( (altmax_lastyear_indx(c) > 0) .and. (rootfr_tot > 0._r8) .and. (surface_prof_tot > 0._r8) ) then
Expand All @@ -271,9 +271,9 @@ subroutine decomp_vertprofiles(bounds, &
end if
end do
else
nfixation_prof(c,1) = 1./dzsoi_decomp(1)
ndep_prof(c,1) = 1./dzsoi_decomp(1)
pdep_prof(c,1) = 1./dzsoi_decomp(1)
nfixation_prof(c,1) = 1._r8/dzsoi_decomp(1)
ndep_prof(c,1) = 1._r8/dzsoi_decomp(1)
pdep_prof(c,1) = 1._r8/dzsoi_decomp(1)
endif
end if
end do
Expand Down

0 comments on commit 491e48b

Please sign in to comment.