+6
−0
+19
−0
Loading
- Add massbal_checkFloodingConsistency() to external/swmm/src/solver/massbal.c, guarded by SWMM_FLOODING_DEBUG. Compare sum of node flooding volumes (NodeStats[j].volFlooded) with system flooding loss (FlowTotals.flooding).Write detailed diagnostics to output/swmm/swmm_flooding_debug.txt (path derived from Frpt.name). Print a concise stderr summary at end of run, noting that discrepancies are expected under the tallnode (canPond=1) workaround. - Call massbal_checkFloodingConsistency() from massbal_report() under the same SWMM_FLOODING_DEBUG guard. - Add TRITON_SWMM_FLOODING_DEBUG CMake option and corresponding compile definition so the flooding debug check is opt-in and disabled by default. - Update README.md with a “Flooding Consistency Debug Check (Optional)” section describing: How to enable the check via CMake, Where the debug output is written, That this is diagnostic-only and does not change model physics.