OGS
CreateAverageMolarMass.cpp
Go to the documentation of this file.
1
13#include "AverageMolarMass.h"
14#include "BaseLib/ConfigTree.h"
15
16namespace MaterialPropertyLib
17{
18std::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
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
T peekConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< AverageMolarMass > createAverageMolarMass(BaseLib::ConfigTree const &config)