OGS
CreateBishopsSaturationCutoff.cpp
Go to the documentation of this file.
1
10
#include "
BaseLib/ConfigTree.h
"
11
#include "
BishopsSaturationCutoff.h
"
12
13
namespace
MaterialPropertyLib
14
{
15
std::unique_ptr<BishopsSaturationCutoff>
createBishopsSaturationCutoff
(
16
BaseLib::ConfigTree
const
& config)
17
{
19
config.
checkConfigParameter
(
"type"
,
"BishopsSaturationCutoff"
);
20
21
// Second access for storage.
23
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
24
25
DBUG
(
"Create BishopsSaturationCutoff property {:s}."
, property_name);
26
27
auto
const
cutoff_value =
29
config.
getConfigParameter
<
double
>(
"cutoff_value"
);
30
31
return
std::make_unique<MaterialPropertyLib::BishopsSaturationCutoff>(
32
std::move(property_name), cutoff_value);
33
}
34
}
// namespace MaterialPropertyLib
BishopsSaturationCutoff.h
ConfigTree.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:30
BaseLib::ConfigTree
Definition
ConfigTree.h:107
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:126
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:41
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:151
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::createBishopsSaturationCutoff
std::unique_ptr< BishopsSaturationCutoff > createBishopsSaturationCutoff(BaseLib::ConfigTree const &config)
Definition
CreateBishopsSaturationCutoff.cpp:15
MaterialLib
MPL
Properties
CreateBishopsSaturationCutoff.cpp
Generated by
1.11.0