OGS
CreateSaturationLiakopoulos.cpp
Go to the documentation of this file.
1 
11 #include "BaseLib/ConfigTree.h"
12 #include "SaturationLiakopoulos.h"
13 
14 namespace MaterialPropertyLib
15 {
16 std::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(char const *fmt, Args const &... args)
Definition: Logging.h:27
T peekConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, T const &value) const
std::unique_ptr< SaturationLiakopoulos > createSaturationLiakopoulos(BaseLib::ConfigTree const &config)