OGS
CreateSaturationLuMcCartney.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
5
7{
8std::unique_ptr<SaturationLuMcCartney> createSaturationLuMcCartney(
9 BaseLib::ConfigTree const& config)
10{
12 config.checkConfigParameter("type", "SaturationLuMcCartney");
13
14 // Second access for storage.
16 auto property_name = config.peekConfigParameter<std::string>("name");
17
18 DBUG("Create SaturationLuMcCartney medium property {:s}.", property_name);
19
20 auto const material =
22 config.getConfigParameter<std::string>("material");
23
24 return std::make_unique<SaturationLuMcCartney>(std::move(property_name),
25 material);
26}
27} // namespace MaterialPropertyLib
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22
T peekConfigParameter(std::string const &param) const
T getConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< SaturationLuMcCartney > createSaturationLuMcCartney(BaseLib::ConfigTree const &config)