![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Runtime backend selection for the explicit FV 1D network solver. More...
#include <memory>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::fv |
Functions | |
| std::unique_ptr< INetworkSolver > | openswmm::fv::makeNetworkSolver (const FvOptions &opts, std::string *chosen, int n_cells) |
Construct the FV network solver for opts and a mesh of n_cells. | |
Runtime backend selection for the explicit FV 1D network solver.
Mirrors 2d/solver/SurfaceSolverFactory.hpp: prefer a Kokkos plugin when one is present, is new enough, reports a usable device, and the problem is large enough to amortize per-kernel launch overhead; otherwise fall back to the serial/OpenMP CPU ExplicitFvSolver.
Lives in the core — it owns the CPU↔plugin decision — but pulls in no Kokkos or GPU dependency itself.