Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

part of cam6_4_075: cam_dev silhs bug fix #1016

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

bstephens82
Copy link
Collaborator

@bstephens82 bstephens82 commented Apr 26, 2024

Resolves #844.

This additional code in cam_dev/micro_pumas_cam.F90 will allow a run using cam_dev and SILHS, i.e. something like

CAM_CONFIG_OPTS="-phys cam_dev -silhs -psubcols 4"

to run without hitting the pcols*psubcols abort error in subcol.F90. This code is not super familiar to me, so my proposed fix (worked out with advice from @cacraigucar) may not be optimal yet, however I've tested it and it does work to get past the error and the model appears to be running normally afterward although I have not performed a months-long test yet.

Furthermore, this will not resolve a separate problem which seems more general to any subcolumns, where subcolumns print as zeros in the netcdf history files. See issue #1015 for more info about that.

@cacraigucar cacraigucar added the misc tag issue or PR candidate for upcoming misc tag label May 6, 2024
@cacraigucar cacraigucar self-assigned this Sep 19, 2024
Copy link
Collaborator

@Katetc Katetc left a comment

Choose a reason for hiding this comment

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

I am kind of sad about this change because we created the DDT to reduce the amount of code related to declaring all of these variables, and here it is again. I think it would be better to be able to do this within the DDT - ie, have some accessor that gives back the variable in the appropriate dimensions for subcolumn averaging. But, that would take a good bit more work than anybody has time for here, and this fixes the problem, so I'm ok with it.

@cacraigucar cacraigucar changed the title cam_dev silhs bug fix part of cam6_4_075: cam_dev silhs bug fix Mar 6, 2025
@nusbaume nusbaume merged commit 6208ea1 into ESCOMP:cam_development Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misc tag issue or PR candidate for upcoming misc tag
Projects
Status: Tag
Development

Successfully merging this pull request may close these issues.

5 participants