OGS
CreateKnobs.cpp
Go to the documentation of this file.
1
11#include "CreateKnobs.h"
12
13#include "BaseLib/ConfigTree.h"
14#include "Knobs.h"
15
16namespace ChemistryLib
17{
18namespace PhreeqcIOData
19{
21{
22 auto const max_iterations =
24 config.getConfigParameter<int>("max_iter");
25
26 auto const relative_convergence_tolerance =
28 config.getConfigParameter<double>("relative_convergence_tolerance");
29
30 auto const tolerance =
32 config.getConfigParameter<double>("tolerance");
33
34 auto const step_size =
36 config.getConfigParameter<int>("step_size");
37
38 auto const scaling =
40 config.getConfigParameter<bool>("scaling");
41
42 return {max_iterations, relative_convergence_tolerance, tolerance,
43 step_size, scaling};
44}
45} // namespace PhreeqcIOData
46} // namespace ChemistryLib
T getConfigParameter(std::string const &param) const
Knobs createKnobs(BaseLib::ConfigTree const &config)