Skip to content

Updates for ccpp-capgen v1#1221

Open
climbfuji wants to merge 18 commits into
NCAR:scm/devfrom
climbfuji:feature/capgen-ng
Open

Updates for ccpp-capgen v1#1221
climbfuji wants to merge 18 commits into
NCAR:scm/devfrom
climbfuji:feature/capgen-ng

Conversation

@climbfuji

@climbfuji climbfuji commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR is for scm/dev and makes the necessary changes to the CCPP metadata and Fortran files to support the transition to the new code generator ccpp-capgen v1.

The majority of the changes are addressing inconsistencies between Fortran and Metadata, the renaming of *_finalize to *_final, missing dependencies in the metadata tables, and simplified syntax for defining DDTs in the metadata.

Testing

Dependencies

grantfirl and others added 10 commits April 10, 2026 10:26
* Add ability to build with ip if it is found. sp is being replaced by ip so this is needed. Note that in spack-stack 1.9.3 the ip package builds with the OpenMP flag, so CMAKE_Fortran_FLAGS_OPENMP_OFF needs to be set by the host model. The RRTMGP files currently break if compiled with OpenMP flags.

* only have DTC/SCM people in the CODEOWNERS for the scm/dev branch

---------

Co-authored-by: Soren Rasmussen <s.c.rasmussen@gmail.com>
… NOAA fixes) (NCAR#1209)

* Read and broadcast data from MPI root rank during init and timestep init phase in GFS time vary; add time vary interstitials for NEPTUNE (NCAR#1187)

* 1. number_of_coefficients_in_ozone_data --> number_of_coefficients_in_ozone_forcing_data
2. Add NEPTUNE interstitials in physics/Interstitials/UFS_SCM_NEPTUNE/

* Read and broadcast data in CCPP init and timestep_init phases instead of reading with every MPI rank

* In physics/Radiation/radiation_astronomy.f, replace hardcoded zero with mpiroot; move mpiutil.F90 to subdirectory tools

* physics/tools/mpiutil.F90: add temporary routine to mpi-abort the model if MPI broadcast errors occur

* Bug fixes in physics/Interstitials/UFS_SCM_NEPTUNE/GFS_time_vary_pre.*.F90 when writing to errmsg for invalid w3kindreal/w3kindint; additionally: formatting updates

* In physics/Radiation/radiation_astronomy.f, replace hardcoded zero with mpiroot; move mpiutil.F90 to subdirectory tools

* Add ability to build with ip if it is found. sp is being replaced by ip so this is needed. Note that in spack-stack 1.9.3 the ip package builds with the OpenMP flag, so CMAKE_Fortran_FLAGS_OPENMP_OFF needs to be set by the host model. The RRTMGP files currently break if compiled with OpenMP flags.

* update several files to work with CCPP SCM after PR 1187

* remove ccpp_bcast for aerin and aer_pres due to UFS RT hanging

---------

Co-authored-by: Dom Heinzeller <dom.heinzeller@icloud.com>
Co-authored-by: Soren Rasmussen <s.c.rasmussen@gmail.com>
Main -> scm/dev (20260421)
@climbfuji climbfuji force-pushed the feature/capgen-ng branch from 34d28ce to bc76b77 Compare June 10, 2026 11:52
@climbfuji climbfuji changed the title DRAFT [scm/dev] Updates for capgen-ng Updates for ccpp-capgen v1 Jun 30, 2026
@climbfuji climbfuji marked this pull request as ready for review June 30, 2026 22:24
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.

3 participants