Loading [MathJax]/extensions/tex2jax.js
OGS
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Typedefs
b
c
e
f
h
j
k
l
m
n
p
q
r
s
t
v
w
x
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
x
Variables
Typedefs
Enumerations
Macros
a
b
c
e
g
h
i
l
m
n
o
p
r
s
t
v
w
x
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:103
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition:
ConfigTree-impl.h:39
ChemistryLib::PhreeqcIOData::createKnobs
Knobs createKnobs(BaseLib::ConfigTree const &config)
Definition:
CreateKnobs.cpp:20
ChemistryLib
Definition:
ChemicalSolverInterface.h:27
ParameterLib::tolerance
static double const tolerance
Definition:
CoordinateSystem.cpp:19
ChemistryLib::PhreeqcIOData::Knobs
Definition:
Knobs.h:19
ChemistryLib
PhreeqcIOData
CreateKnobs.cpp
Generated by
1.9.1