Skip to content

Port conv_water_4rad to atmos_phys (convective_cloud_water) and cloud_water_paths - #428

Open
jimmielin wants to merge 6 commits into
ESCOMP:mainfrom
jimmielin:hplin/conv_water
Open

Port conv_water_4rad to atmos_phys (convective_cloud_water) and cloud_water_paths#428
jimmielin wants to merge 6 commits into
ESCOMP:mainfrom
jimmielin:hplin/conv_water

Conversation

@jimmielin

Copy link
Copy Markdown
Collaborator

Tag name (The PR title should also include the tag name):
Originator(s): @jimmielin (co-authored with claude-fable:5)

Description (include issue title and the keyword ['closes', 'fixes', 'resolves'] and issue number):

  • Ports CAM's conv_water_4rad (src/physics/cam/conv_water.F90) and
  • the two-moment cloud-water-path block of cloud_diagnostics_calc (src/physics/cam/cloud_diagnostics.F90),
  • plus the snow/graupel cloud-fraction and water-path block from micro_pumas_cam.

The first one is a portable core scheme reused in CAM.

List all namelist files that were added or changed:
A schemes/cloud_water/convective_cloud_water_namelist.xml

List all files eliminated and why: N/A

List all files added and what they do:

A       schemes/cloud_water/cloud_water_paths.F90
A       schemes/cloud_water/cloud_water_paths.meta

A       schemes/cloud_water/convective_cloud_water.F90
A       schemes/cloud_water/convective_cloud_water.meta
A       schemes/cloud_water/convective_cloud_water_namelist.xml

A       schemes/sima_diagnostics/cloud_water_paths_diagnostics.F90
A       schemes/sima_diagnostics/cloud_water_paths_diagnostics.meta
A       schemes/sima_diagnostics/convective_cloud_water_diagnostics.F90
A       schemes/sima_diagnostics/convective_cloud_water_diagnostics.meta
  - diagnostics scheme.

A       test/test_suites/suite_cloud_water.xml
  - test SDF.

List all existing files that have been modified, and describe the changes:
(Helpful git command: git diff --name-status main...<your_branch_name>)

M       suites/suite_cam5.xml
M       suites/suite_cam7.xml
   - put in production SDF

List all automated tests that failed, as well as an explanation for why they weren't fixed:

Is this an answer-changing PR? If so, is it a new physics package, algorithm change, tuning change, etc?
Yes
New physics package

If yes to the above question, describe how this code was validated with the new/modified features:

Haipeng Lin added 4 commits July 22, 2026 14:52
…_water_paths

Assisted-by: claude-fable:5
Signed-off-by: Haipeng Lin <[email protected]>

This is a combination of 3 commits.

Add convective_cloud_water scheme (portable core of CAM conv_water_4rad)

Science core split out of CAM's conv_water.F90 (conv_water_4rad), with r8
swept to kind_phys; the science body is bit-for-bit the code validated by
CAM regression testing of the conv_water refactor. CAM builds this file
through the atmos_phys external and keeps a thin conv_water wrapper owning
pbuf marshaling, the conv_water_nl namelist, and history output.

Add convective_cloud_water_diagnostics and the cloud_water test suite

CAM-parity history output for convective_cloud_water (ICLMRCU, ICIMRCU,
ICLMRTOT, ICIMRTOT, GCLMRSH, GCLMRDP, GCIMRSH, GCIMRDP, FRESH, FREDP,
FRECU, FRETOT) so CAM-SIMA regression tests of the suite produce a
baseline. The suite runs convective_cloud_water from a CAM snapshot
captured around cloud_diagnostics_calc; cloud_water_paths joins the
suite when it is ported.
@jimmielin jimmielin self-assigned this Jul 27, 2026
@jimmielin jimmielin added the enhancement New feature or request label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant