Skip to content

Fix GH50: Separate infiltration from lateral water redistribution#1234

Draft
sunt05 wants to merge 1 commit intomasterfrom
sunt05/gh50-investigate
Draft

Fix GH50: Separate infiltration from lateral water redistribution#1234
sunt05 wants to merge 1 commit intomasterfrom
sunt05/gh50-investigate

Conversation

@sunt05
Copy link

@sunt05 sunt05 commented Mar 10, 2026

Summary

  • Physically separates infiltration (vertical water entry into soil) from lateral redistribution (horizontal water flow between land cover types)
  • Infiltration now happens automatically based on soil capacity before redistribution, rather than being gated by the ToSoilStore parameter
  • Renames ToSoilStore to ToRunoff in WithinGridWaterDist to clarify it controls runoff partitioning of post-infiltration drainage

Changes

  • Add automatic infiltration step in suews_ctrl_driver.f95 before ReDistributeWater, capacity-limited for pervious surfaces only
  • Remove manual soil store accumulation from suews_phys_waterdist.f95
  • Rename ToSoilStore column to ToRunoff in WithinGridWaterDist matrix and sample files
  • Update Python data model (WaterDistribution), YAML converter (legacy compatibility), and documentation
  • Legacy to_soilstore values are automatically migrated to to_runoff via model validator

Test plan

  • Smoke tests pass (13 passed, 2 skipped)
  • Full test suite (make test)
  • Verify sample output parity with updated test fixture

Closes #50

🤖 Generated with Claude Code

Physically separates infiltration (vertical water entry into soil) from
lateral redistribution (horizontal water flow between land cover types).
Infiltration now happens automatically based on soil capacity before
redistribution, rather than being gated by the ToSoilStore parameter.

- Add automatic infiltration step in suews_ctrl_driver.f95 before
  ReDistributeWater, capacity-limited for pervious surfaces only
- Remove manual soil store accumulation from suews_phys_waterdist.f95
- Rename ToSoilStore to ToRunoff in WithinGridWaterDist matrix
- Update Python data model, YAML converter, docs, sample files

Closes #50

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@sunt05 sunt05 linked an issue Mar 10, 2026 that may be closed by this pull request
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.

Infiltration 0 based on settings in SUEWS_WithinGridWaterDist.txt

1 participant