16 std::string
const&
name,
19 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
27 DBUG(
"Using curve %s", curve_name.c_str());
29 auto const curve_it = curves.find(curve_name);
30 if (curve_it == curves.end())
31 OGS_FATAL(
"Curve `%s' does not exists.", curve_name.c_str());
33 auto referenced_parameter_name =
36 DBUG(
"Using parameter %s", referenced_parameter_name.c_str());
39 return std::make_unique<CurveScaledParameter<double>>(
40 name, *curve_it->second, referenced_parameter_name);
std::unique_ptr< ParameterBase > createCurveScaledParameter(std::string const &name, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves)
T getConfigParameter(std::string const ¶m) const
void checkConfigParameter(std::string const ¶m, T const &value) const
#define OGS_FATAL(fmt,...)