OGS
CreateSaturationLiakopoulos.cpp
Go to the documentation of this file.
1
11#include "BaseLib/ConfigTree.h"
13
14namespace MaterialPropertyLib
15{
16std::unique_ptr<SaturationLiakopoulos> createSaturationLiakopoulos(
17 BaseLib::ConfigTree const& config)
18{
20 config.checkConfigParameter("type", "SaturationLiakopoulos");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create SaturationLiakopoulos medium property {:s}.", property_name);
27
29 return std::make_unique<SaturationLiakopoulos>(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< SaturationLiakopoulos > createSaturationLiakopoulos(BaseLib::ConfigTree const &config)