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
16
namespace
ChemistryLib
17
{
18
namespace
PhreeqcIOData
19
{
20
Knobs
createKnobs
(
BaseLib::ConfigTree
const
& config)
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
ConfigTree.h
CreateKnobs.h
Knobs.h
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:41
ChemistryLib::PhreeqcIOData::createKnobs
Knobs createKnobs(BaseLib::ConfigTree const &config)
Definition
CreateKnobs.cpp:20
ChemistryLib
Definition
ChemicalSolverInterface.h:31
ChemistryLib::PhreeqcIOData::Knobs
Definition
Knobs.h:20
ChemistryLib
PhreeqcIOData
CreateKnobs.cpp
Generated by
1.12.0