OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::xsect::LocateLut Struct Reference

#include <XSectLookup.hpp>

Collaboration diagram for openswmm::xsect::LocateLut:

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
 

Detailed Description

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).

Member Data Documentation

◆ j_last

int openswmm::xsect::LocateLut::j_last = 0

the jLast this map was built for

◆ kBuckets

int openswmm::xsect::LocateLut::kBuckets = 64
staticconstexpr

◆ lo

unsigned char openswmm::xsect::LocateLut::lo[kBuckets+1] = {}

lo[b] = max{ j : bucket(table[j]) < b }

◆ scale

double openswmm::xsect::LocateLut::scale = 0.0

kBuckets / (table[jLast] - t0); 0 == disabled

◆ t0

double openswmm::xsect::LocateLut::t0 = 0.0

table[0] — the low end of the value range


The documentation for this struct was generated from the following file: