Skip to content

fortran: check for ISO_FORTRAN_ENV:REAL16 #8637

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

Merged

Conversation

ggouaillardet
Copy link
Contributor

@ggouaillardet ggouaillardet commented Mar 17, 2021

Though this has not landed into the Fortran standard,
some compilers support REAL16 in the ISO_FORTRAN_ENV
module.
Use it when available, and fallback to REAL2
and COMPLEX
4 otherwise.

Thanks Jeff Hammond for reporting this issue

Ref. #8616

Signed-off-by: Gilles Gouaillardet [email protected]

@ggouaillardet
Copy link
Contributor Author

@bosilca I pushed an other commit to generate subroutines for both REAL*2 and REAL(REAL126)

let me know whether I should squash or remove it.

@ggouaillardet ggouaillardet force-pushed the topic/iso_fortran_env_real16 branch from 9d6f7db to 6c5ddec Compare March 17, 2021 08:41
Copy link
Member

@kawashima-fj kawashima-fj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for being late for the issue discussion.
I finally understand the problem and I've had a rough review. I'll take a closer look in March 18 (in Japan TZ).

@ggouaillardet ggouaillardet force-pushed the topic/iso_fortran_env_real16 branch from 6c5ddec to d0085f6 Compare March 18, 2021 08:22
Though this has not landed into the Fortran standard,
some compilers support REAL16 in the ISO_FORTRAN_ENV
module.
Use it when available, and fallback to REAL*2
and COMPLEX*4 otherwise.

Thanks Jeff Hammond for reporting this issue

Ref. open-mpi#8616

Signed-off-by: Gilles Gouaillardet <[email protected]>
@ggouaillardet
Copy link
Contributor Author

@kawashima-fj thanks for the thorough review, I made the requested changes.

@ggouaillardet ggouaillardet force-pushed the topic/iso_fortran_env_real16 branch from d0085f6 to 3a6fc24 Compare March 18, 2021 09:24
Copy link
Member

@kawashima-fj kawashima-fj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

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

Successfully merging this pull request may close these issues.

4 participants