[properties] replace SET_STRING_PROP calls

It's not possible to have `constexpr std::string`s in C++17. Taking
`std::string_view` gives conversion errors. Since this is all temporary
and will be replaced by pure runtime parameters anyway, use string
literals for the moment.
This commit is contained in:
Bernd Flemisch
2020-06-09 11:15:16 +02:00
parent 3ba67ebaa8
commit b809e9a4f7
11 changed files with 30 additions and 15 deletions

View File

@@ -162,7 +162,8 @@ template<class TypeTag>
struct EnableConstraints<TypeTag, TTag::FractureProblem> { static constexpr bool value = true; };
// Set the default value for the file name of the grid
SET_STRING_PROP(FractureProblem, GridFile, "data/fracture.art.dgf");
template<class TypeTag>
struct GridFile<TypeTag, TTag::FractureProblem> { static constexpr auto value = "data/fracture.art.dgf"; };
// Set the default value for the end time
template<class TypeTag>