Files
CoolProp/dev/scripts
Ian Bell 5b53e4394a test(plot): use composed matchers to tolerate cross-platform libm jitter (#2760)
The Plot isoline `.value` checks asserted at WithinAbs(value, 1e-10), which
is platform-fragile: libm transcendentals (exp/log/pow) differ in the last
few bits across glibc, Apple libm, and UCRT, and that propagates through
the EOS solvers into ~1e-9 to 1e-10 relative differences in the computed
range bounds. Reference data regenerated on macOS in #2749 therefore broke
the Linux CI.

Switch to `WithinAbs(v, abs) || WithinRel(v, 1e-8)`: keeps the absolute
tolerance as a near-zero safety net and adds a 1e-8 relative tolerance
that comfortably covers the observed cross-platform jitter (worst case
~5e-9 rel for p_isolines[4]). Updated the generator script and re-ran it
to regenerate src/CoolPropPlot.cpp.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 19:06:15 -04:00
..
2019-01-11 11:42:55 +01:00
2015-07-09 18:43:45 +02:00
2014-05-16 13:47:49 +02:00
2019-01-12 20:45:25 -07:00
2019-01-12 20:45:25 -07:00
2022-12-16 11:35:35 +01:00
2019-01-12 20:45:25 -07:00