Commit bcb9c17
committed
Add MFD flow length computation (#1009)
New flow_length_mfd() computes proportion-weighted flow path lengths
from MFD fraction grids. Downstream mode gives the expected distance
to outlet weighted by MFD fractions; upstream mode gives the longest
path from any divide to each cell.
All four backends: NumPy, CuPy, Dask+NumPy, Dask+CuPy.
29 tests covering correctness, edge cases, and cross-backend consistency.1 parent 0d1bdfb commit bcb9c17
3 files changed
Lines changed: 1402 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments