Open ara137 opened 1 month ago
Many operations work incorrectly when you build HOOMD-blue in single precision, so I do not offer any support for this configuration.
You are welcome to submit a pull request that fixes the table potential bug. I recommend that first check that the table values are translated correctly from C++ to Python - the bug may be in that conversion.
That's understandable. We'll try to have a more detailed look into it and work on a solution.
Description
The tabulated pair potential does not work properly when compiling HOOMD-blue v.4.7.0 in single precision mode. We tested this issue by creating a tabulated version of the Lennard-Jones potential, placing two particles in a simulation box, and iteratively computing their potential energy as a function of their distance. This procedure reproduces the correct result when using double precision, but fails when using single precision.
Script
Input files
potential.csv start.zip
Output
Expected output
We expected to get the input pair potential (cf. the curves for "LJ pot single precision", "LJ pot double precision", and "Tabular LJ pot double precision" in attached graph). bugCheck.pdf
Platform
GPU, Linux
Installation method
Compiled from source
HOOMD-blue version
4.7.0
Python version
3.11.8