Skip to content

Export CO2 value to the land model via coupler - #427

Merged
jimmielin merged 6 commits into
ESCOMP:mainfrom
jimmielin:hplin/co2_diagnostic_export
Jul 30, 2026
Merged

Export CO2 value to the land model via coupler#427
jimmielin merged 6 commits into
ESCOMP:mainfrom
jimmielin:hplin/co2_diagnostic_export

Conversation

@jimmielin

@jimmielin jimmielin commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

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

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

  • Update the set_surface_coupling_vars scheme to pass the prescribed_volume_mixing_ratio_of_co2 prescribed via prescribe_radiative_gas_concentrations to the coupler

CAM just does this in camsrfexch.F90

cam_out%co2diag(:ncol) = chem_surfvals_get('CO2VMR') * 1.0e+6_r8

List all namelist files that were added or changed:
A schemes/utilities/set_surface_coupling_vars_namelist.xml

List all files eliminated and why:

List all files added and what they do: N/A

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

M       schemes/utilities/set_surface_coupling_vars.F90
M       schemes/utilities/set_surface_coupling_vars.meta
  - update to set co2diag, co2prog

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?

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

Haipeng Lin added 2 commits July 22, 2026 16:21
…co2diag_tbd to land model.

Provenance: FIX-31 octopus
Assisted-by: claude-fable:5
@jimmielin
jimmielin requested a review from nusbaume July 22, 2026 20:25
@jimmielin jimmielin self-assigned this Jul 22, 2026
@jimmielin jimmielin added the enhancement New feature or request label Jul 22, 2026
@jimmielin

Copy link
Copy Markdown
Collaborator Author

Thanks @nusbaume for the comments - I have updated the PR to just use set_surface_coupling_vars!

@nusbaume nusbaume left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jimmielin! I have one change request but it doesn't require a re-review.

Comment thread schemes/utilities/set_surface_coupling_vars.F90 Outdated
@nusbaume
nusbaume requested a review from peverwhee July 30, 2026 17:59
@jimmielin
jimmielin merged commit d3dcffa into ESCOMP:main Jul 30, 2026
5 checks passed
jimmielin added a commit to ESCOMP/CAM-SIMA that referenced this pull request Jul 31, 2026
Tag name (required for release branches): sima0_17_001
Originator(s): @jimmielin 
AI tools used (if applicable; please also add the "AI-generated code"
label to the PR):
  What: claude-fable:5
  How: wrote the companion PR

Description (include the issue title, and the keyword ['closes',
'fixes', 'resolves'] followed by the issue number):
- Companion PR to ESCOMP/atmospheric_physics#427
- Adds standard name of `co2diag` previously `co2diag_tbd`

Describe any changes made to build system:

Describe any changes made to the namelist:

List any changes to the defaults for the input datasets (e.g. boundary
datasets):

List all files eliminated and why:

List all files added and what they do:

List all existing files that have been modified, and describe the
changes:
(Helpful git command: `git diff --name-status
development...<your_branch_name>`)
M       src/data/registry.xml
add standard name for co2diag

M       src/data/generate_registry_data.py
fix bitrot in parsing when calling gen registry data manually

If there are new failures (compared to the
`test/existing-test-failures.txt` file),
have them OK'd by the gatekeeper, note them here, and add them to the
file.
If there are baseline differences, include the test and the reason for
the
diff. What is the nature of the change? Roundoff?

derecho/intel/aux_sima:
```
  SMS_D_Ln9.mpasa120_mpasa120.QPC4.derecho_intel.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details:
    FAIL SMS_D_Ln9.mpasa120_mpasa120.QPC4.derecho_intel.cam-outfrq_analy_ic_cam4 NLCOMP
  SMS_D_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_intel.cam-outfrq_se_cam4 (Overall: NLFAIL) details:
    FAIL SMS_D_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_intel.cam-outfrq_se_cam4 NLCOMP
  SMS_Ln9.mpasa120_mpasa120.QPC4.derecho_intel.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details:
    FAIL SMS_Ln9.mpasa120_mpasa120.QPC4.derecho_intel.cam-outfrq_analy_ic_cam4 NLCOMP
  SMS_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_intel.cam-outfrq_se_cam4 (Overall: NLFAIL) details:
    FAIL SMS_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_intel.cam-outfrq_se_cam4 NLCOMP
  - new namelist surface_coupling_nl


  SMS_Ln9.ne3pg3_ne3pg3_mg37.FKESSLER.derecho_intel.cam-outfrq_se_cslam_multitape (Overall: NLFAIL) details:
    FAIL SMS_Ln9.ne3pg3_ne3pg3_mg37.FKESSLER.derecho_intel.cam-outfrq_se_cslam_multitape NLCOMP
  - pre-existing failure

```

derecho/gnu/aux_sima:
```
  SMS_D_Ln9.mpasa120_mpasa120.QPC4.derecho_gnu.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details:
    FAIL SMS_D_Ln9.mpasa120_mpasa120.QPC4.derecho_gnu.cam-outfrq_analy_ic_cam4 NLCOMP
  SMS_D_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_gnu.cam-outfrq_se_cam4 (Overall: NLFAIL) details:
    FAIL SMS_D_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_gnu.cam-outfrq_se_cam4 NLCOMP
  SMS_Ln9.mpasa120_mpasa120.QPC4.derecho_gnu.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details:
    FAIL SMS_Ln9.mpasa120_mpasa120.QPC4.derecho_gnu.cam-outfrq_analy_ic_cam4 NLCOMP
  SMS_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_gnu.cam-outfrq_se_cam4 (Overall: NLFAIL) details:
    FAIL SMS_Ln9.ne3pg3_ne3pg3_mt232.QPC4.derecho_gnu.cam-outfrq_se_cam4 NLCOMP
Found extra namelist: surface_coupling_nl
```

derecho/nvhpc/aux_sima (test is run via Github workflow. Only run the
test manually if we need to save new baselines):
```
  SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_nvhpc.cam-outfrq_rrtmgp_derecho_gpu (Overall: NLFAIL) details:
    FAIL SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_nvhpc.cam-outfrq_rrtmgp_derecho_gpu NLCOMP
  - extra NL variable: scale_dry_air_mass (appears to be intro'd in sima0_17_000 but nvhpc baseline missing for that tag.)
```

If this changes climate describe any run(s) done to evaluate the new
climate in enough detail that it(they) could be reproduced:

CAM-SIMA date used for the baseline comparison tests if different than
latest:

---------

Co-authored-by: Haipeng Lin <[email protected]>
Co-authored-by: Haipeng Lin <[email protected]>
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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants