OGS
CreateWaterVapourLatentHeatWithCriticalTemperature.cpp
Go to the documentation of this file.
1 
13 
14 #include "BaseLib/ConfigTree.h"
17 
18 namespace MaterialPropertyLib
19 {
21  BaseLib::ConfigTree const& config)
22 {
24  config.checkConfigParameter("type",
25  "WaterVapourLatentHeatWithCriticalTemperature");
26  DBUG("Create WaterVapourLatentHeatWithCriticalTemperature phase property");
27 
28  // Second access for storage.
30  auto property_name = config.peekConfigParameter<std::string>("name");
31 
33  return std::make_unique<WaterVapourLatentHeatWithCriticalTemperature>(
34  std::move(property_name));
35 }
36 } // 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< Property > createWaterVapourLatentHeatWithCriticalTemperature(BaseLib::ConfigTree const &config)