Skip to content

Document double precision for Fortran tolerances - #659

Open
Sinkleberg wants to merge 1 commit into
stevengj:masterfrom
Sinkleberg:codex/fortran-tolerance-kind
Open

Sinkleberg wants to merge 1 commit into
stevengj:masterfrom
Sinkleberg:codex/fortran-tolerance-kind

Conversation

@Sinkleberg

Copy link
Copy Markdown

The example for #401 shows how to pass a double-precision literal to the setter and a writable variable to the getter. With an implicit interface, a single-precision literal can compile and give NLopt the wrong tolerance.

Tested with GNU Fortran 13.2 on Windows. The client read back both 1.0D-4 and 1.0D-8. All 89 CTest cases passed with local Fortran runtime linking and the build DLL on PATH. I checked the Markdown but didn’t build the full docs site.

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.

1 participant