capgen: Add capability and test for passing mpi communicator as a flat field
Open
@climbfuji is already working on this.
Since May 1, 2026.
bug
capgen
capgen-unification
enhancement
- Dominant language
- Python
- Stars
- 25
- Forks
- 67
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 2
Description
Description
SIMA folks reported that they can't pass the MPI communicator as a variable with metadata when it is of type mpi_comm, because capgen insists on a definition of the DDT in a module and metadata file.
Solution
We need to make sure that capgen can pass such an MPI communicator and correctly add
use mpi_f08, only : mpi_comm
to the auto-generated code where needed.
We should also add a simple test for this to the CI testing harness.
Alternatives (optional)
No alternative. Can't stay with or go back to old integer MPI communicators.
Related to (optional)
n/a
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.