mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[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:
@@ -138,7 +138,8 @@ struct InitialTimeStepSize<TypeTag, TTag::RichardsLensProblem>
|
||||
};
|
||||
|
||||
// The default DGF file to load
|
||||
SET_STRING_PROP(RichardsLensProblem, GridFile, "./data/richardslens_24x16.dgf");
|
||||
template<class TypeTag>
|
||||
struct GridFile<TypeTag, TTag::RichardsLensProblem> { static constexpr auto value = "./data/richardslens_24x16.dgf"; };
|
||||
|
||||
} // namespace Opm::Properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user