-
Notifications
You must be signed in to change notification settings - Fork 146
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
fix array dimensions for phii, prsi in ugwp_driver_v0.F #368
fix array dimensions for phii, prsi in ugwp_driver_v0.F #368
Conversation
Associated PR: |
@@ -48,7 +48,9 @@ subroutine cires_ugwp_driver_v0(me, master, | |||
&, rain | |||
|
|||
real(kind=kind_phys), intent(in), dimension(im,levs) :: ugrs | |||
&, vgrs, tgrs, qgrs, prsi, prsl, prslk, phii, phil, del | |||
&, vgrs, tgrs, qgrs, prsl, prslk, phil, del |
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.
Just noting that this code is commented out (ifdef-ed out) in ccpp-physics: the entire block lines 16-253 (subroutine cires_ugwp_driver_v0) is not used in CCPP.
The corresponding code in cires_ugwp.{F90,meta} has the correct dimensions for phii and prsi.
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 definitely did not notice that! Wouldn't that explain why debug mode compilation wouldn't catch this? I'm guessing that the associated PR for the non-CCPP version is exercised though?
This PR has been pulled into #366 (although the affected code is not exercised at all - ifdef-ed out). |
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.
Please do not merge this PR as it will be merged automatically with #366.
This is an emergency bugfix found by Valery Yudin, communicated through email to @grantfirl.