Amber-MD / cpptraj

Biomolecular simulation trajectory/data analysis.
Other
138 stars 64 forks source link

Fix compilation on ARM based systems #1093

Closed drroe closed 4 months ago

drroe commented 4 months ago

Version 6.28.0.

This should fix the test failures on ARM systems observed in #1070 (I finally got access to an ARM system for testing). The problem was simple; the function that is supposed to detect the number of leading zeros in a floating point number fractional part wasn't properly protected against a value of 0 being passed to log10(). On ARM systems this failure lead to bad precision values which in turn gave bad output to ASCII data files. This PR fixes the behavior.

drroe commented 4 months ago

Build of the manual is still broken. 😢