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
2018-03-06 07:51:58 -07:00
2026-04-20 15:57:57 -04:00
2023-06-19 13:42:09 -04:00
2018-04-17 09:46:37 +02:00
2025-10-11 16:32:58 -04:00
2018-08-14 23:06:49 -06:00

Welcome to CoolProp

CoolProp is a thermophysical property database and wrappers for a selection of programming environments. It offers similar functionality to REFPROP, but CoolProp is open-source and free. It was originally developed by Ian Bell, at the time a post-doc at the University of Liege, in Liege, Belgium.

  • CoolProp has flexible licensing terms: Commercial - ok! Academic? - ok! license

  • For Python, get the latest release via pip install coolprop PyPI downloads PyPI version

  • ... other binaries are available from SourceForge sourceforge downloads CoolProp version tag

  • There is also a bleeding edge nightly build of the development version.

  • The documentation is available for the latest release and the development version

  • For any kind of question regarding CoolProp and its usage, you can ask the CoolProp Discussions

  • ... you might also find answers in our FAQ

  • If you found a bug or have an issue that requires the developers to become active, please file an issue in our issue tracker

  • Contributions to this project are welcomed and encouraged! If you wish to contribute bug fixes, patches, or new features, wrappers, or material properties, please submit a Pull Request with your code.

  • If you are new to Git and Github, please see the CoolProp Wiki for guidance on becoming a contributor to the project.

  • Have a look at the coverity stats Coverity Scan Build Status

Description
No description provided
Readme MIT Cite this repository 58 MiB
Languages
C++ 59.2%
Python 24%
CMake 3.2%
TeX 2.4%
Cython 2.2%
Other 8.7%