NCAR / NCAR/ccpp-framework

capgen: Add capability and test for passing mpi communicator as a flat field

Open
#751 1 comment 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.