35 if (value->size() != 1)
38 "Expected to read exactly one value, but {:d} were given.",
41 DBUG(
"Using value {:g} for constant parameter.", (*value)[0]);
42 return std::make_unique<ConstantParameter<double>>(name,
48 std::vector<double>
const values =
54 OGS_FATAL(
"No value available for constant parameter.");
57 DBUG(
"Using following values for the constant parameter:");
58 for (
double const v : values)
64 return std::make_unique<ConstantParameter<double>>(name, values);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
std::optional< T > getConfigParameterOptional(std::string const ¶m) const
T getConfigParameter(std::string const ¶m) const
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
std::unique_ptr< ParameterBase > createConstantParameter(std::string const &name, BaseLib::ConfigTree const &config)