Citlali
Loading...
Searching...
No Matches
Public Types | Static Public Attributes | List of all members
solver_options Struct Reference

Helper to construct Solver from CLI. More...

Collaboration diagram for solver_options:
Collaboration graph

Public Types

using Solver = kids::TimeStreamSolver
 

Static Public Attributes

static constexpr auto cli
 
static constexpr auto solver
 

Detailed Description

Helper to construct Solver from CLI.

Member Typedef Documentation

◆ Solver

using solver_options::Solver = kids::TimeStreamSolver

Member Data Documentation

◆ cli

constexpr auto solver_options::cli
staticconstexpr
Initial value:
= [](auto &rc) {
using namespace config_utils::clipp_builder;
return "solver configs" % __(
_(rc, p("solver_fitreportdir"), "Look for fitreport file in this directory",
".", str("dir")),
_(rc, p("solver_fitreportfile"), "Use this fitreport file",
undef{}, str("file")),
_(rc, p("solver_extra_output"), "Compute extra output"),
_(rc, p("solver_chunk_size"), "Solve timestream by chunk",
undef{}, opt_int()),
_(rc, p("solver_sample_slice"), "Use this range of samples.",
":", str("slice"))
);
}

◆ solver

constexpr auto solver_options::solver
staticconstexpr
Initial value:
= [](auto &rc) {
Solver::Config conf{};
for (auto &[confkey, rckey] :
keymap_t{{"fitreportdir", "solver_fitreportdir"},
{"fitreportfile", "solver_fitreportfile"},
{"extra_output", "solver_extra_output"},
{"exmode", "grppiex"},
}) {
if (rc.is_set(rckey)) {
conf.at_or_add(confkey) = rc.at(rckey);
}
}
return Solver{std::move(conf)};
}
std::unordered_map< std::string, std::string > keymap_t
Definition kids_main.cpp:16
kids::TimeStreamSolver Solver
Definition kids_main.cpp:98

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