![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Post-parse cross-reference resolution for the input system. More...
Go to the source code of this file.
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::input |
Functions | |
| void | openswmm::input::resolve_cross_references (SimulationContext &ctx) |
| Resolve all cross-references in ctx after all sections are parsed. | |
Post-parse cross-reference resolution for the input system.
After all sections are parsed, some object references that appear forward (e.g., a subcatchment referencing a gage that appears later in the file) need to be resolved. This module performs a single sweep to fix up all -1 indices.
Resolutions performed:
subcatch.gage[i] — re-look up by gage namesubcatch.outlet_node — re-look up outlet by namegages.ts_index — re-look up time series by namenodes.outfall_param for TIDAL/TIMESERIES outfalls — resolve curve indexlinks.pump_curve — resolve pump curve by name