Skip to content

cam6_4_182: Updates to CAM build of TUV-X lib#1577

Open
fvitt wants to merge 6 commits into
ESCOMP:cam_developmentfrom
fvitt:tuvx_builds
Open

cam6_4_182: Updates to CAM build of TUV-X lib#1577
fvitt wants to merge 6 commits into
ESCOMP:cam_developmentfrom
fvitt:tuvx_builds

Conversation

@fvitt

@fvitt fvitt commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

This builds the TUV-x library only when CAM is configured for TUV-X. A configure option (-tuvx) has been added which is required for cases that use TUV-X photolysis.

Closes #1537
Closes #1570

fvitt added 2 commits June 10, 2026 06:31
	modified:   bld/build-namelist
	modified:   bld/config_files/definition.xml
	modified:   bld/configure
	modified:   cime_config/buildlib
	modified:   cime_config/buildnml
	modified:   cime_config/config_component.xml
	modified:   cime_config/testdefs/testmods_dirs/cam/carma_mixed_sulfate/shell_commands
	modified:   cime_config/testdefs/testmods_dirs/cam/outfrq9s_tuvx_waccm_ma_mam5/shell_commands
	modified:   cime_config/testdefs/testmods_dirs/cam/outfrq9s_waccm_ma_mam4/shell_commands
	modified:   src/chemistry/mozart/mo_tuvx.F90
	modified:   cime_config/buildlib
@fvitt fvitt self-assigned this Jun 10, 2026

@cacraigucar cacraigucar 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.

Recommend possibly looking at the #ifdef's one more time to see if all the code they encapsulate really needs to be encapsulated. I realize this is the easiest way to proceed and since it is deep in mozart code, I'm not going to push back on it. I'm guessing some of the encapsulation could be external and controlled by a passed in use_tuvx logical. Again, nothing I am going to require though

@cacraigucar cacraigucar changed the title Updates to CAM build of TUV-X lib cam6_4_182: Updates to CAM build of TUV-X lib Jun 11, 2026

@jimmielin jimmielin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @fvitt. I have a few suggested changes for improvements in the way linker flags are added.

Comment thread cime_config/buildlib Outdated
Comment thread cime_config/buildlib
Comment thread cime_config/buildlib Outdated
Comment thread bld/build-namelist Outdated
fvitt and others added 4 commits June 11, 2026 16:12
Haipeng's suggestion

Co-authored-by: Haipeng Lin <myself@jimmielin.me>
Haipeng's suggestion

Co-authored-by: Haipeng Lin <myself@jimmielin.me>
Haipeng's suggestion

Co-authored-by: Haipeng Lin <myself@jimmielin.me>

@jimmielin jimmielin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @fvitt, everything looks good to me now!

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