Skip to content

F08: refactor templates #13202

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hppritcha
Copy link
Member

This PR refactors some of the f08 template files introduced in PR #12621. Many of them had been using, incorrectly, macros from fint_2_int.h. The code in the use-mpi-f08 folder now makes use of generated code in the wrapper around the internal c code to avoid many of the problems that these older macros were trying to solve by providing 'c' interfaces directly to the fortran compiler. Also, generalized macros for handling translation of arrays of MPI_Fint's to c int's (and other types) are used in these templates.

Related to #13168 and associated issue raised by a user on the mail list.

This PR refactors some of the f08 template files introduced in PR open-mpi#12621.
Many of them had been using, incorrectly, macros from fint_2_int.h.
The code in the use-mpi-f08 folder now makes use of generated code
in the wrapper around the internal c code to avoid many of the problems
that these older macros were trying to solve by providing 'c' interfaces
directly to the fortran compiler.  Also, generalized macros for handling
translation of arrays of MPI_Fint's to c int's (and other types) are used in these
templates.

Related to open-mpi#13168 and associated issue raised by a user on the mail list.

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
@hppritcha hppritcha marked this pull request as draft April 21, 2025 14:34
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.

1 participant