![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Classes | |
| struct | GWContext |
| struct | GWSoA |
| class | GWSolver |
Enumerations | |
| enum | GWVar : int { GWV_HGW = 0 , GWV_HSW = 1 , GWV_HCB = 2 , GWV_HGS = 3 , GWV_KS = 4 , GWV_K = 5 , GWV_THETA = 6 , GWV_PHI = 7 , GWV_FI = 8 , GWV_FU = 9 , GWV_A = 10 , GWV_MAX = 11 } |
| GW expression variable indices (matching legacy GWvariables enum). More... | |
Functions | |
| int | gwf_validate (const std::string &expr, std::string &msg, int &col) |
| Validate a [GWF] flow expression without compiling or storing it. | |
Variables | |
| constexpr double | GWTOL |
| constexpr double | XTOL |
| enum openswmm::groundwater::GWVar : int |
GW expression variable indices (matching legacy GWvariables enum).
| int openswmm::groundwater::gwf_validate | ( | const std::string & | expr, |
| std::string & | msg, | ||
| int & | col ) |
Validate a [GWF] flow expression without compiling or storing it.
Diagnostic peer of mathexpr::parse for editors: a strict scan (unknown characters, malformed numbers and identifiers outside GW_VAR_NAMES / mathexpr::function_names() are errors, all case-insensitive), balanced parentheses, operand/operator sequencing including unary minus, and function arity (min/max take exactly 2 arguments, every other function exactly 1). An empty or whitespace-only expression is invalid.
| expr | Expression text. |
| msg | [out] Human-readable diagnostic ("" when valid). |
| col | [out] 0-based column of the error, or -1 when not attributable. |
|
constexpr |