feat(libconfig): new version of libconfig
This commit is contained in:
@@ -394,7 +394,9 @@ namespace gridfire::engine {
|
||||
const double maxFlow
|
||||
) const {
|
||||
LOG_TRACE_L1(m_logger, "Culling reactions based on flow rates...");
|
||||
const auto relative_culling_threshold = m_config.get<double>("gridfire:AdaptiveEngineView:RelativeCullingThreshold", 1e-75);
|
||||
|
||||
const auto relative_culling_threshold = m_config->engine.views.adaptiveEngineView.relativeCullingThreshold;
|
||||
|
||||
double absoluteCullingThreshold = relative_culling_threshold * maxFlow;
|
||||
LOG_DEBUG(m_logger, "Relative culling threshold: {:7.3E} ({:7.3E})", relative_culling_threshold, absoluteCullingThreshold);
|
||||
std::vector<const reaction::Reaction*> culledReactions;
|
||||
|
||||
@@ -112,8 +112,8 @@ namespace gridfire::solver {
|
||||
// 2. If the user has set tolerances in code, those override the config
|
||||
// 3. If the user has not set tolerances in code and the config does not have them, use hardcoded defaults
|
||||
|
||||
auto absTol = m_config.get<double>("gridfire:solver:CVODESolverStrategy:absTol", 1.0e-8);
|
||||
auto relTol = m_config.get<double>("gridfire:solver:CVODESolverStrategy:relTol", 1.0e-5);
|
||||
auto absTol = m_config->solver.cvode.absTol;
|
||||
auto relTol = m_config->solver.cvode.relTol;
|
||||
|
||||
if (m_absTol) {
|
||||
absTol = *m_absTol;
|
||||
@@ -935,8 +935,8 @@ namespace gridfire::solver {
|
||||
sunrealtype *y_data = N_VGetArrayPointer(m_Y);
|
||||
sunrealtype *y_err_data = N_VGetArrayPointer(m_YErr);
|
||||
|
||||
const auto absTol = m_config.get<double>("gridfire:solver:CVODESolverStrategy:absTol", 1.0e-8);
|
||||
const auto relTol = m_config.get<double>("gridfire:solver:CVODESolverStrategy:relTol", 1.0e-8);
|
||||
const auto absTol = m_config->solver.cvode.absTol;
|
||||
const auto relTol = m_config->solver.cvode.relTol;
|
||||
|
||||
std::vector<double> err_ratios;
|
||||
const size_t num_components = N_VGetLength(m_Y);
|
||||
|
||||
Reference in New Issue
Block a user