OGS
CreateAverageMolarMass.cpp
Go to the documentation of this file.
1
13
#include "
AverageMolarMass.h
"
14
#include "
BaseLib/ConfigTree.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
std::unique_ptr<AverageMolarMass>
createAverageMolarMass
(
19
BaseLib::ConfigTree
const
& config)
20
{
22
config.
checkConfigParameter
(
"type"
,
"AverageMolarMass"
);
23
25
auto
property_name = config.
peekConfigParameter
<std::string>(
"name"
);
26
27
DBUG
(
"Create AverageMolarMass medium property"
);
29
return
std::make_unique<AverageMolarMass>(std::move(property_name));
30
}
31
}
// namespace MaterialPropertyLib
AverageMolarMass.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::checkConfigParameter
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Definition
ConfigTree.cpp:151
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::createAverageMolarMass
std::unique_ptr< AverageMolarMass > createAverageMolarMass(BaseLib::ConfigTree const &config)
Definition
CreateAverageMolarMass.cpp:18
MaterialLib
MPL
Properties
CreateAverageMolarMass.cpp
Generated by
1.12.0