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-171-gf370a16a5 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
Documentation
►
GeoLib
►
InfoLib
▼
MaterialLib
►
Adsorption
►
Fluid
►
FractureModels
▼
MPL
►
Components
►
Properties
►
Utils
►
CheckMaterialSpatialDistributionMap.h
►
Component.cpp
►
Component.h
►
CreateComponent.cpp
►
CreateComponent.h
►
CreateMaterialSpatialDistributionMap.cpp
►
CreateMaterialSpatialDistributionMap.h
►
CreateMedium.cpp
►
CreateMedium.h
►
CreatePhase.cpp
►
CreatePhase.h
►
CreateProperty.cpp
►
CreateProperty.h
MaterialSpatialDistributionMap.cpp
►
MaterialSpatialDistributionMap.h
►
Medium.cpp
►
Medium.h
►
Phase.cpp
►
Phase.h
►
Property.cpp
►
Property.h
►
PropertyType.cpp
►
PropertyType.h
►
VariableType.cpp
►
VariableType.h
►
PorousMedium
►
SolidModels
►
Utils
►
PhysicalConstant.h
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
PropertyType.cpp
Go to the documentation of this file.
1
10
#include "
PropertyType.h
"
11
12
#include <boost/algorithm/string/predicate.hpp>
13
14
#include "
BaseLib/Error.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
PropertyType
convertStringToProperty
(std::string
const
&
string
)
19
{
20
for
(
int
i = 0; i < static_cast<int>(
PropertyType::number_of_properties
);
21
++i)
22
{
23
if
(boost::iequals(
string
,
property_enum_to_string
[i]))
24
{
25
return
static_cast<
PropertyType
>
(i);
26
}
27
}
28
29
OGS_FATAL
(
30
"The property name '{:s}' does not correspond to any known property"
,
31
string
);
32
}
18
PropertyType
convertStringToProperty
(std::string
const
&
string
) {
…
}
33
}
// namespace MaterialPropertyLib
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
PropertyType.h
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::convertStringToProperty
PropertyType convertStringToProperty(std::string const &string)
Definition
PropertyType.cpp:18
MaterialPropertyLib::property_enum_to_string
static const std::array< std::string, PropertyType::number_of_properties > property_enum_to_string
Definition
PropertyType.h:119
MaterialPropertyLib::PropertyType
PropertyType
Definition
PropertyType.h:33
MaterialPropertyLib::number_of_properties
@ number_of_properties
Definition
PropertyType.h:115
MaterialLib
MPL
PropertyType.cpp
Generated by
1.12.0