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