mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ParameterSystem: add support for quad Scalar
This commit is contained in:
@@ -923,6 +923,11 @@ auto Get(bool errorIfNotRegistered)
|
||||
else if constexpr (std::is_same_v<ParamType, bool>) {
|
||||
defaultValue = defVal == "1";
|
||||
}
|
||||
#if HAVE_QUAD
|
||||
else if constexpr (std::is_same_v<ParamType, quad>) {
|
||||
defaultValue = std::strtold(defVal.data(), nullptr);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
std::from_chars(defVal.data(), defVal.data() + defVal.size(), defaultValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user