OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
NetworkSolverFactory.cpp File Reference

Implementation of runtime FV backend selection. More...

#include "NetworkSolverFactory.hpp"
#include "ExplicitFvSolver.hpp"
#include "FvOptions.hpp"
#include "INetworkSolver.hpp"
#include "../../2d/solver/GpuPluginAbi.h"
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <filesystem>
#include <map>
#include <mutex>
#include <string>
#include <vector>
#include <dlfcn.h>
Include dependency graph for NetworkSolverFactory.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::fv
 

Functions

std::unique_ptr< INetworkSolveropenswmm::fv::makeNetworkSolver (const FvOptions &opts, std::string *chosen, int n_cells)
 Construct the FV network solver for opts and a mesh of n_cells.
 

Detailed Description

Implementation of runtime FV backend selection.

Deliberately structured to read alongside 2d/solver/SurfaceSolverFactory.cpp — same search path rules, same handle cache, same ABI check, same gate semantics — so the two plugin loaders can be reviewed as one design.

See also
NetworkSolverFactory.hpp