Skip to content
Snippets Groups Projects
Commit 8ec72e74 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MPL] Add descriptive PropertyDataType names.

Also used for error reporting.
parent 041b36f0
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,16 @@ private: ...@@ -132,6 +132,16 @@ private:
// Empty check for properties which can be defined on every scale, // Empty check for properties which can be defined on every scale,
// medium, phase or component // medium, phase or component
} }
private:
/// Corresponds to the PropertyDataType
static constexpr std::array property_data_type_names_ = {
"scalar", "2-vector", "3-vector", "2x2-matrix",
"3x3-matrix", "2D-Kelvin vector", "3D-Kelvin vector"};
static_assert(property_data_type_names_.size() ==
std::variant_size_v<PropertyDataType>,
"The array of property data type names has different size "
"than the PropertyDataType variant type.");
}; };
inline void overwriteExistingProperties( inline void overwriteExistingProperties(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment