31#ifndef OPENSWMM_ENGINE_2D_ACTIVE_SET_DATA_HPP
32#define OPENSWMM_ENGINE_2D_ACTIVE_SET_DATA_HPP
71 cell_active.assign(
static_cast<std::size_t
>(nt), 0);
72 vert_active.assign(
static_cast<std::size_t
>(nv), 0);
Definition NodeCoupling.cpp:15
Definition ActiveSetData.hpp:39
std::vector< int > active_cells
Definition ActiveSetData.hpp:55
double wet_depth_eps
wet threshold (m); cell is a seed if V > eps·A
Definition ActiveSetData.hpp:42
std::vector< uint8_t > vert_active
Vertex touched by ≥1 active cell. Sized n_vertices.
Definition ActiveSetData.hpp:51
long halo_trip_count
breach-redo occurrences
Definition ActiveSetData.hpp:63
std::vector< uint8_t > cell_active
1 = active (compute), 0 = frozen. Sized n_triangles.
Definition ActiveSetData.hpp:49
int n_seed
wet ∪ sourced cells at the last rebuild
Definition ActiveSetData.hpp:64
long rebuild_count
Definition ActiveSetData.hpp:62
std::vector< uint8_t > cell_ring
Definition ActiveSetData.hpp:47
std::vector< int > outer_ring_cells
Definition ActiveSetData.hpp:59
static constexpr uint8_t kInactive
Definition ActiveSetData.hpp:46
int halo_rings
current halo width (auto-widened on breach)
Definition ActiveSetData.hpp:41
std::vector< int > active_verts
Definition ActiveSetData.hpp:56
int n_active() const noexcept
Definition ActiveSetData.hpp:66
bool enabled
resolved: option ∧ CVODE ∧ DW momentum
Definition ActiveSetData.hpp:40
void resize(int nt, int nv)
Allocate the flag arrays (idempotent) and clear the lists.
Definition ActiveSetData.hpp:69