mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
ParameterSystem: add support for quad Scalar
This commit is contained in:
parent
ba7993fb10
commit
3d737c0303
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user