18 std::string
const&
name,
21 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
29 DBUG(
"Using curve {:s}", curve_name);
31 auto const curve_it = curves.find(curve_name);
32 if (curve_it == curves.end())
34 OGS_FATAL(
"Curve `{:s}' does not exists.", curve_name);
37 auto referenced_parameter_name =
40 DBUG(
"Using parameter {:s}", referenced_parameter_name);
43 return std::make_unique<CurveScaledParameter<double>>(
44 name, *curve_it->second, referenced_parameter_name);
void DBUG(char const *fmt, Args const &... args)
void checkConfigParameter(std::string const ¶m, T const &value) const
T getConfigParameter(std::string const ¶m) const
std::unique_ptr< ParameterBase > createCurveScaledParameter(std::string const &name, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves)