OGS
CreateBishopsSaturationCutoff.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
BaseLib/ConfigTree.h
"
5
#include "
BishopsSaturationCutoff.h
"
6
7
namespace
MaterialPropertyLib
8
{
9
std::unique_ptr<BishopsSaturationCutoff>
createBishopsSaturationCutoff
(
10
BaseLib::ConfigTree
const
& config)
11
{
13
config.
checkConfigParameter
(
"type"
,
"BishopsSaturationCutoff"
);
14
15
// Second access for storage.
17
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
18
19
DBUG
(
"Create BishopsSaturationCutoff property {:s}."
, property_name);
20
21
auto
const
cutoff_value =
23
config.
getConfigParameter
<
double
>(
"cutoff_value"
);
24
25
return
std::make_unique<MaterialPropertyLib::BishopsSaturationCutoff>(
26
std::move(property_name), cutoff_value);
27
}
28
}
// namespace MaterialPropertyLib
BishopsSaturationCutoff.h
ConfigTree.h
DBUG
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:22
BaseLib::ConfigTree
Definition
ConfigTree.h:101
BaseLib::ConfigTree::peekConfigParameter
T peekConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:116
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition
ConfigTree-impl.h:35
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:166
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:98
MaterialPropertyLib::createBishopsSaturationCutoff
std::unique_ptr< BishopsSaturationCutoff > createBishopsSaturationCutoff(BaseLib::ConfigTree const &config)
Definition
CreateBishopsSaturationCutoff.cpp:9
MaterialLib
MPL
Properties
CreateBishopsSaturationCutoff.cpp
Generated by
1.14.0