Skip to content

Conversation

@cacraigucar
Copy link
Collaborator

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

@cacraigucar cacraigucar added the enhancement New feature or request label Jun 4, 2021
@cacraigucar cacraigucar added this to the CESM2.3 milestone Jun 4, 2021
@cacraigucar cacraigucar self-assigned this Jun 4, 2021
Copy link
Collaborator

@nusbaume nusbaume left a 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
Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Collaborator

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)?

Copy link
Collaborator

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.

Copy link
Collaborator

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
Copy link
Collaborator

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.

Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same response.

@fvitt fvitt merged commit d7376d1 into ESCOMP:cam_development Jun 22, 2021
@cacraigucar cacraigucar changed the title Update Held_Suarez to CCPP version part of cam6_2_022: Update Held_Suarez to CCPP version Jun 22, 2021
@cacraigucar cacraigucar changed the title part of cam6_2_022: Update Held_Suarez to CCPP version part of cam6_3_022: Update Held_Suarez to CCPP version Jun 22, 2021
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

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants