Loading [MathJax]/jax/output/HTML-CSS/config.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
TimeDiscretizationBuilder.cpp
Go to the documentation of this file.
1
11
#include "
TimeDiscretizationBuilder.h
"
12
13
#include "
BaseLib/ConfigTree.h
"
14
#include "
BaseLib/Error.h
"
15
#include "
TimeDiscretization.h
"
16
17
namespace
NumLib
18
{
19
std::unique_ptr<TimeDiscretization>
createTimeDiscretization
(
20
BaseLib::ConfigTree
const
& config)
21
{
23
auto
const
type = config.
getConfigParameter
<std::string>(
"type"
);
24
26
if
(type ==
"BackwardEuler"
)
27
{
28
return
std::make_unique<BackwardEuler>();
29
}
30
OGS_FATAL
(
"Unrecognized time discretization type `{:s}'"
, type);
31
}
32
}
// namespace NumLib
ConfigTree.h
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition:
Error.h:26
TimeDiscretizationBuilder.h
TimeDiscretization.h
BaseLib::ConfigTree
Definition:
ConfigTree.h:103
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition:
ConfigTree-impl.h:39
NumLib
Definition:
ProjectData.h:35
NumLib::createTimeDiscretization
std::unique_ptr< TimeDiscretization > createTimeDiscretization(BaseLib::ConfigTree const &config)
Definition:
TimeDiscretizationBuilder.cpp:19
NumLib
ODESolver
TimeDiscretizationBuilder.cpp
Generated by
1.9.1