Skip to content

Add guards to assignment of RTTOV trace gas profiles when ppmv units are used#156

Merged
RobertPincus merged 2 commits into
CFMIP:masterfrom
jshaw35:master
May 1, 2026
Merged

Add guards to assignment of RTTOV trace gas profiles when ppmv units are used#156
RobertPincus merged 2 commits into
CFMIP:masterfrom
jshaw35:master

Conversation

@jshaw35

@jshaw35 jshaw35 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

src/simulator/rttov/cosp_rttov_v13.F90 assigns trace gas mixing ratios to the RTTOV atmospheric profile object. Because not all trace gases are used for all simulations, logicals are used to guard against assigning garbage data to the profile object. These guards were missing when trace gas units of ppmv were used, which results in a runtime error in CESM when debug settings are turned on (thank you @cacraigucar for catching this).

This PR adds those guards and removes a block of commented code. No answers are changed and all tests pass.

Also, please create a new tag when this PR is merged so that it can be immediately brought into CESM3 (merge hopefully coming very soon!).

@RobertPincus RobertPincus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @jshaw35

@RobertPincus
RobertPincus merged commit 5eb05e5 into CFMIP:master May 1, 2026
4 checks passed
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.

2 participants