OGS
Toggle main menu visibility
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
z
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
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
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
i
k
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
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-394-ge538cec3fb6 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
►
Applications
►
BaseLib
►
build
▼
ChemistryLib
►
Common
▼
PhreeqcIOData
AqueousSolution.cpp
►
AqueousSolution.h
ChemicalSystem.cpp
►
ChemicalSystem.h
►
CreateAqueousSolution.cpp
►
CreateAqueousSolution.h
►
CreateChemicalSystem.cpp
►
CreateChemicalSystem.h
►
CreateEquilibriumReactants.cpp
►
CreateEquilibriumReactants.h
►
CreateExchange.cpp
►
CreateExchange.h
►
CreateKineticReactant.cpp
►
CreateKineticReactant.h
►
CreateKnobs.cpp
►
CreateKnobs.h
►
CreateOutput.cpp
►
CreateOutput.h
►
CreateSolutionComponent.cpp
►
CreateSolutionComponent.h
►
CreateSurface.cpp
►
CreateSurface.h
►
CreateUserPunch.cpp
►
CreateUserPunch.h
Dump.cpp
►
Dump.h
EquilibriumReactant.cpp
►
EquilibriumReactant.h
Exchange.cpp
►
Exchange.h
KineticReactant.cpp
►
KineticReactant.h
►
Knobs.cpp
►
Knobs.h
►
Output.cpp
►
Output.h
►
ReactionRate.cpp
►
ReactionRate.h
►
Surface.h
►
UserPunch.cpp
►
UserPunch.h
►
PhreeqcKernelData
►
SelfContainedSolverData
►
ChemicalSolverInterface.h
►
ChemicalSolverType.h
►
CreateChemicalSolverInterface.cpp
►
CreateChemicalSolverInterface.h
►
PhreeqcIO.cpp
►
PhreeqcIO.h
►
PhreeqcKernel.cpp
►
PhreeqcKernel.h
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
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
}
20
Knobs
createKnobs
(
BaseLib::ConfigTree
const
& config) {
…
}
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