Loading [MathJax]/extensions/tex2jax.js
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-423-gda6ede93c83 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
UserPunch.cpp
Go to the documentation of this file.
1
11
#include "
UserPunch.h
"
12
13
#include "
BaseLib/ConfigTreeUtil.h
"
14
15
namespace
ChemistryLib
16
{
17
namespace
PhreeqcIOData
18
{
19
void
UserPunch::initialize
(std::size_t
const
num_chemical_systems)
20
{
21
for
(
auto
& secondary_variable :
secondary_variables
)
22
{
23
secondary_variable.value->resize(num_chemical_systems);
24
}
25
}
19
void
UserPunch::initialize
(std::size_t
const
num_chemical_systems) {
…
}
26
27
std::ostream&
operator<<
(std::ostream& os,
UserPunch
const
& user_punch)
28
{
29
os <<
"USER_PUNCH"
30
<<
"\n"
;
31
os <<
"-headings "
;
32
auto
const
& secondary_variables = user_punch.
secondary_variables
;
33
for
(
auto
const
& secondary_variable : secondary_variables)
34
{
35
os << secondary_variable.name <<
" "
;
36
}
37
os <<
"\n"
;
38
39
os <<
"-start"
40
<<
"\n"
;
41
int
line_number = 1;
42
for
(
auto
const
& statement : user_punch.
statements
)
43
{
44
os << line_number <<
" "
<< statement <<
"\n"
;
45
++line_number;
46
}
47
os <<
"-end"
48
<<
"\n"
;
49
50
return
os;
51
}
27
std::ostream&
operator<<
(std::ostream& os,
UserPunch
const
& user_punch) {
…
};
52
}
// namespace PhreeqcIOData
53
}
// namespace ChemistryLib
ConfigTreeUtil.h
UserPunch.h
ChemistryLib::PhreeqcIOData::operator<<
std::ostream & operator<<(std::ostream &os, PhreeqcIO const &phreeqc_io)
Definition
PhreeqcIO.cpp:483
ChemistryLib
Definition
ChemicalSolverInterface.h:31
ChemistryLib::PhreeqcIOData::UserPunch
Definition
UserPunch.h:43
ChemistryLib::PhreeqcIOData::UserPunch::initialize
void initialize(std::size_t const num_chemical_systems)
Definition
UserPunch.cpp:19
ChemistryLib::PhreeqcIOData::UserPunch::secondary_variables
std::vector< SecondaryVariable > secondary_variables
Definition
UserPunch.h:56
ChemistryLib::PhreeqcIOData::UserPunch::statements
std::vector< std::string > const statements
Definition
UserPunch.h:57
ChemistryLib
PhreeqcIOData
UserPunch.cpp
Generated by
1.12.0