13#include <unordered_set>
26 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
36 DBUG(
"Create Curve {:s}.", property_name);
40 DBUG(
"Using curve '{:s}'", curve_name);
45 auto const independent_variable_string =
48 DBUG(
"Using independent_variable '{:s}'", independent_variable_string);
50 static const std::unordered_set<std::string> filter_not_variables = {
53 if (filter_not_variables.contains(independent_variable_string))
55 independent_variable = independent_variable_string;
60 independent_variable_string);
63 return std::make_unique<Curve>(
64 std::move(property_name), independent_variable, curve);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition of the PiecewiseLinearInterpolation class.
T peekConfigParameter(std::string const ¶m) const
T getConfigParameter(std::string const ¶m) const
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
OGS_NO_DANGLING Map::mapped_type & getOrError(Map &map, Key const &key, std::string const &error_message)
std::unique_ptr< Curve > createCurve(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
std::variant< std::string, Variable > StringOrVariable
Variable convertStringToVariable(std::string const &string)