Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on ARM based systems #1093

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Fix compilation on ARM based systems #1093

merged 3 commits into from
Jul 19, 2024

Conversation

drroe
Copy link
Contributor

@drroe drroe commented Jul 19, 2024

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 added 3 commits July 19, 2024 13:03
misleading name; the original intent was to ensure when writing out
coordinates with a certain step size that the precision was large enough
to accomodate the step (e.g. a step of .001 would need at least a
precision of 3). Also rework the function so it is more accurate for
values that are not exactly powers of 10.
  (fix) the output precision of certain X step values in output ASCII
data formats in some cases.
@drroe drroe added the bugfix label Jul 19, 2024
@drroe drroe self-assigned this Jul 19, 2024
@drroe
Copy link
Contributor Author

drroe commented Jul 19, 2024

Build of the manual is still broken. 😢

@drroe drroe merged commit e7482f3 into Amber-MD:master Jul 19, 2024
12 of 13 checks passed
@drroe drroe deleted the fix.arm branch July 19, 2024 20:05
@drroe drroe mentioned this pull request Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant