18 DBUG(
"Create Constant property {:s}.", property_name);
19 auto const value_data =
23 auto const values_data =
27 if ((value_data) && (values_data))
30 "Both the value and the values tags were given.\n\
31 Please give only one of them.");
34 std::vector<double> values;
42 values = *values_data;
47 OGS_FATAL(
"No value(s) was(were) provided.");
50 DBUG(
"Using following values for the constant parameter:");
51 for (
double const v : values)
57 return std::make_unique<Constant>(std::move(property_name),
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
T peekConfigParameter(std::string const ¶m) const
std::optional< T > getConfigParameterOptional(std::string const ¶m) const
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
PropertyDataType fromVector(std::vector< double > const &values)
std::unique_ptr< Constant > createConstant(BaseLib::ConfigTree const &config)