![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
#include <XSectLookup.hpp>
Public Attributes | |
| double | t0 = 0.0 |
| table[0] — the low end of the value range | |
| double | scale = 0.0 |
| kBuckets / (table[jLast] - t0); 0 == disabled | |
| int | j_last = 0 |
the jLast this map was built for | |
| unsigned char | lo [kBuckets+1] = {} |
| lo[b] = max{ j : bucket(table[j]) < b } | |
Static Public Attributes | |
| static constexpr int | kBuckets = 64 |
Precomputed value→index-bracket map for one geometry table.
POD: trivially copyable into a device kernel alongside the table it indexes (the Kokkos FV path copies XsectTables by value).
| int openswmm::xsect::LocateLut::j_last = 0 |
the jLast this map was built for
|
staticconstexpr |
| unsigned char openswmm::xsect::LocateLut::lo[kBuckets+1] = {} |
lo[b] = max{ j : bucket(table[j]) < b }
| double openswmm::xsect::LocateLut::scale = 0.0 |
kBuckets / (table[jLast] - t0); 0 == disabled
| double openswmm::xsect::LocateLut::t0 = 0.0 |
table[0] — the low end of the value range