Skip to content

Avoid ieee_is_nan for more cross-platform compatible check - #245

Closed
mfherbst wants to merge 1 commit into
dftd3:mainfrom
mfherbst:patch-1
Closed

mfherbst wants to merge 1 commit into
dftd3:mainfrom
mfherbst:patch-1

Conversation

@mfherbst

Copy link
Copy Markdown

This came up when cross-compiling simple-dftd3 on arm architectures, where gfortran has no ieee_arithmetic module, so I'm using the old trick that NaNs are the only IEEE numbers not comparing equal to themselves.

@awvwgk

awvwgk commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Implementing a version without NaN check in #246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants