Skip to content

Fix residual surface water blocking rainfall infiltration - #217

Merged
bgroenks96 merged 2 commits into
NumericalEarth:mainfrom
yunan-l:fix/surface-runoff-residual
Oct 9, 2026
Merged

bgroenks96 merged 2 commits into
NumericalEarth:mainfrom
yunan-l:fix/surface-runoff-residual

Conversation

@yunan-l

@yunan-l yunan-l commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

A tiny positive surface-water pool can remain after its drainage rate rounds to zero. DirectSurfaceRunoff then uses that zero drainage rate to calculate infiltration, sending new rainfall to runoff even when the soil is unsaturated.

Fix

Treat a pool at or below eps(NF) as negligible when choosing how rainfall infiltrates. Its remaining drainage is still included in the runoff calculation. Larger surface-water pools keep their existing behavior.

@yunan-l
yunan-l requested a review from bgroenks96 October 9, 2026 08:13
@bgroenks96

Copy link
Copy Markdown
Collaborator

Thanks @yunan-l!

@bgroenks96
bgroenks96 merged commit 8b2c6bb into NumericalEarth:main Oct 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants