Part 2: Operator Snapshot Layer – per-substep DW state exposure#64
Open
wiesnerfriedman wants to merge 1 commit intoHydroCouple:swmm6_relfrom
Open
Part 2: Operator Snapshot Layer – per-substep DW state exposure#64wiesnerfriedman wants to merge 1 commit intoHydroCouple:swmm6_relfrom
wiesnerfriedman wants to merge 1 commit intoHydroCouple:swmm6_relfrom
Conversation
Collaborator
wiesnerfriedman
commented
Apr 21, 2026
- Add openswmm_operator_snapshot.h: C API for snapshot callback and poll-mode
- Add OperatorSnapshotState.hpp: per-instance snapshot storage and staging buffers
- Wire snapshot populate + callback into SWMMEngine::stepRouting()
- Add DWSolver::populateSnapshot() with zero-copy pointers into solver buffers
- Wire iteration history (resetIterCount/recordResidual) into Picard loop
- Add C API: swmm_set_operator_snapshot_callback, swmm_get_operator_snapshot, swmm_enable_iteration_history, swmm_get_iteration_residual
- Fix error code redefinition conflict (SWMM_ERR_WRONG_STATE alias)
- Add IntelliSense workaround for dllimport false positives
- Add test_operator_snapshot.cpp (4 tests) and bench_operator_snapshot.cpp
- Register test and benchmark in CMakeLists.txt
- Add openswmm_operator_snapshot.h: C API for snapshot callback and poll-mode - Add OperatorSnapshotState.hpp: per-instance snapshot storage and staging buffers - Wire snapshot populate + callback into SWMMEngine::stepRouting() - Add DWSolver::populateSnapshot() with zero-copy pointers into solver buffers - Wire iteration history (resetIterCount/recordResidual) into Picard loop - Add C API: swmm_set_operator_snapshot_callback, swmm_get_operator_snapshot, swmm_enable_iteration_history, swmm_get_iteration_residual - Fix error code redefinition conflict (SWMM_ERR_WRONG_STATE alias) - Add IntelliSense workaround for dllimport false positives - Add test_operator_snapshot.cpp (4 tests) and bench_operator_snapshot.cpp - Register test and benchmark in CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.