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