-
Notifications
You must be signed in to change notification settings - Fork 171
part of cam6_3_022: Update Held_Suarez to CCPP version #386
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
Conversation
nusbaume
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! The only change I would recommend is replacing the 512 number with a CIME-provided kind.
|
|
||
| type(physics_buffer_desc), pointer :: pbuf2d(:,:) | ||
|
|
||
| character(len=512) :: errmsg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might replace 512 here with SHR_KIND_CX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nusbaume, the issue here is that we don't have symbolic sizes in the metadata. Hopefully, this will be fixed at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@goldy that makes sense to me when it comes to CAMDEN, but why would that matter for CAM, given that it is just using the fortran code directly (so the metadata is never involved)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is true but it is good if the code reflects what is in CCPP so we can easily find and fix these interfaces when the CCPP changes. Not a big deal either way IMHO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree that this is not really a big deal. If @cacraigucar just wants to merge this without worrying about these particular changes then that is fine with me!
| real(r8) :: pmid(pcols,pver) ! mid-point pressure | ||
| integer :: i, k ! Longitude, level indices | ||
|
|
||
| character(len=512) :: errmsg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might replace 512 here with SHR_KIND_CX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same response.
|
|
||
| type(physics_buffer_desc), pointer :: pbuf2d(:,:) | ||
|
|
||
| character(len=512) :: errmsg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nusbaume, the issue here is that we don't have symbolic sizes in the metadata. Hopefully, this will be fixed at some point.
| real(r8) :: pmid(pcols,pver) ! mid-point pressure | ||
| integer :: i, k ! Longitude, level indices | ||
|
|
||
| character(len=512) :: errmsg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same response.
Minor mods to bring in Held_Suarez
Ran test using the updated Held_Suarez code and using cam_snapshot, the "after" file was identical to the original "after" file.
Closes #267