Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ch4Mod.F90 as in CESM2.2 #12

Merged
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
9 changes: 5 additions & 4 deletions src/biogeochem/ch4Mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3602,10 +3602,11 @@ subroutine ch4_tran (bounds, &
pondz = h2osfc(c) / 1000._r8 / frac_h2osfc(c) ! Assume all h2osfc corresponds to sat area
! mm / mm/m
pondres = pondres + pondz / ponddiff
else if (.not. lake .and. sat == 1 .and. frac_h2osfc(c) > 0._r8 .and. &
h2osfc(c)/frac_h2osfc(c) > capthick) then ! Assuming short-circuit logic will avoid FPE here.
! assume surface ice is impermeable
pondres = 1/smallnumber
else if (.not. lake .and. sat == 1 .and. frac_h2osfc(c) > 0._r8) then
if (h2osfc(c)/frac_h2osfc(c) > capthick) then ! Since short-circuit logic will NOT avoid FPE here.
! assume surface ice is impermeable
pondres = 1/smallnumber
end if
end if

spec_grnd_cond(c,s) = 1._r8/(1._r8/grnd_ch4_cond(c) + snowres(c) + pondres)
Expand Down