Junction errors name window

- Reach indexes take their window key and name it when a reach id appears twice in one plan
- Window planning passes its key through reach shaping, pond-channel settlement and confluence grading
- A downstream reach starting above its feeder's end fails closed naming the window
- Index, grader and plan-cache tests check that each failure names its window
This commit is contained in:
Brian Neumann-Fopiano committed 2026-11-01 20:48:08 -05:00
1 parent 41e38debad
commit 358f7218f8
17 files changed
+101 -64

No files matched your search

@@ -87,7 +87,7 @@ final class HydrologyPlanHarness {
double started = cpuMillis();
try {
WindowPlan plan = planners.windows().plan(key, needed);
windows.put(key, new IndexedWindow(plan, ReachIndex.build(plan.reaches(), plan.ponds())));
windows.put(key, new IndexedWindow(plan, ReachIndex.build(plan.key(), plan.reaches(), plan.ponds())));
} catch (RuntimeException failure) {
failures.add("window " + key.wx() + "," + key.wz() + " plan: " + cause(failure));
}