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