opm-simulators/opm/models
Bård Skaflestad d9863d5e32 Don't Require Floating Point from_chars() Function
This commit broadens the scope of commit c1e2a3a9b (PR #922) to
apply to all compilers/libraries, not just Clang/libc++, which do
not have support for floating-point types in std::from_chars().
While hopefully a transient situation, this enables building the
parameter system with GCC versions prior to GCC 11.  We expect to
require version 11 in the not too distant future, though.  At that
point we should revert this commit.

We use a configure-time feature test of the compiler (CMake command
'try_compile') to detect whether or not the compiler supports
floating-point overloads of std::from_chars() and emit the result to
config.h as the new preprocessor symbol

    HAVE_FLOATING_POINT_FROM_CHARS

We use std::strtod() as the fall-back alternative for floating point
conversion if this symbol is defined to false (zero).
2024-08-15 18:16:38 +02:00
..
blackoil move BlackoilNewtonMethod parameters to TypeTag-free parameter system 2024-08-14 09:30:45 +02:00
common move EnableGravity to TypeTag-free parameter system 2024-08-14 09:30:45 +02:00
discretefracture move VtkDiscreteFractureModule parameters to TypeTag-free parameter system 2024-08-14 09:13:10 +02:00
discretization move LinearSolver parameters to TypeTag-free parameter system 2024-08-14 12:47:59 +02:00
flash move VtkEnergyModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
immiscible move VtkEnergyModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
io move VtkDiscreteFractureModule parameters to TypeTag-free parameter system 2024-08-14 09:13:10 +02:00
ncp move VtkEnergyModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
nonlinear move NewtonMaxIterations to TypeTag-free parameter system 2024-08-14 09:06:18 +02:00
parallel move ThreadsPerProcess to TypeTag-free parameter system 2024-08-12 15:49:47 +02:00
ptflash move VtkPtFlashModule parameters to TypeTag-free parameter system 2024-08-14 09:12:05 +02:00
pvs move VtkEnergyModule parameters to TypeTag-free parameter system 2024-08-14 09:06:31 +02:00
richards changed: consistently use std::array 2022-08-26 08:27:40 +02:00
utils Don't Require Floating Point from_chars() Function 2024-08-15 18:16:38 +02:00